Wadimz opened a new pull request, #20894: URL: https://github.com/apache/kafka/pull/20894
This fix addresses a bug where `max.connections.per.ip.overrides` does not correctly apply the override value to all IP addresses resolved from a multi-IP hostname. ### Background `max.connections.per.ip` can be overridden per host using the `max.connections.per.ip.overrides` configuration. The override can be specified using either an IP address or a hostname. When a hostname resolves to multiple IP addresses (e.g., when pointing to a load balancer or an auto-scaling group), the broker currently applies the override only to the first resolved IP address. This occurs because the existing implementation relies on InetAddress.getByName(host), which internally returns only the first value from InetAddress.getAllByName(host). As a result, additional backend IPs continue to use the default max.connections.per.ip value, leading to inconsistent connection limits for the same logical host. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
