kezhuw commented on PR #2338:
URL: https://github.com/apache/zookeeper/pull/2338#issuecomment-3550346426

   > Can we also do the same for addresses that each of the hosts resolves to, 
so that backoffs are only applied after connection to each address is attempted 
once and every address is connected to once using round-robin rather than 
random selection? This will avoid delays in cases where at least one address 
can be connected to.      -- quoted from jira issue
   
   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.
   
   -1 to new properties. We probably will run into interference or 
inconsistence with system properties just like ZOOKEEPER-4955.
   
   See:
   * 
https://github.com/openjdk/jdk/blob/master/src/java.base/share/classes/java/net/spi/InetAddressResolver.java#L89


-- 
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]

Reply via email to