You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Kazoo reuses stale DNS results across connection attempts instead of re-resolving hostnames #794
Therefore, Kazoo does eventually re-resolve DNS, but it does not follow the connection-failure re-resolution semantics proposed by ZOOKEEPER-2184. It first exhausts every address from the previous DNS snapshot.
In cloud and container environments, service IPs may change frequently. Continuing to attempt stale addresses can delay reconnection, consume the ZooKeeper session timeout, cause session expiration, or create connection-drift risk if an old IP is reassigned to another instance or workload.
Snippet to Reproduce the Problem
Configure zk-dns-test.example.com to initially resolve to multiple unreachable addresses:
zk-dns-test.example.com -> [192.0.2.1, 192.0.2.2]
Run the following client with DEBUG logging enabled:
Activity
StephenSorriaux commentedon Aug 31, 2026
Hello, thank you for the issue.
I agree, we should stop trying to cache DNS results and assume the user did configure DNS caching on their system if they want it.
fix(core): refresh DNS before connection attempts