anmolnar commented on PR #2338: URL: https://github.com/apache/zookeeper/pull/2338#issuecomment-3552846179
> I think we can iterate every resolved addresses in jdk given order so we obey both `java.net.preferIPv4Stack` and `java.net.preferIPv6Addresses` and solve [ZOOKEEPER-3100](https://issues.apache.org/jira/browse/ZOOKEEPER-3100 I don't think we should iterate over all addresses. Thought about this, but I believe it's better to pick one address from DNS according to java system properties and if it fails, immedately move to next server. If a single server fails, it most likely will fail on all addresses, because it's down. In the next iteration when come back to the server, DNS will give another IP address if possible. -- 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]
