Re: Java client 2.4.1 doesn't always handle IP changes

2021-05-14 Thread Michał Łowicki
Checked Java DNS resolution caching: ``` sun.net.InetAddressCachePolicy.get(); sun.net.InetAddressCachePolicy.getNegative(); ``` and those return 30 and 10 respectively. So it seems fine and it shouldn't cache for too long. On 2021/05/14 12:55:00, Michał Łowicki wrote: > Hey, > > Had inciden

Java client 2.4.1 doesn't always handle IP changes

2021-05-14 Thread Michał Łowicki
Hey, Had incident where one broker died and got later different IP address. Some clients / pods (everything lives on K8s) detected IP change and logged: [Producer clientId=producer-1] Hostname for node 1 changed from to > . (logged by org.apache.kafka.clients.ClusterConnectionState