zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anmolnar <...@git.apache.org>
Subject [GitHub] zookeeper issue #451: ZOOKEEPER-2184: Zookeeper Client should re-resolve hos...
Date Thu, 08 Feb 2018 18:27:36 GMT
Github user anmolnar commented on the issue:

    Going one step back I wonder why we try to deal with multiple addresses at all.
    HostProvider should just make a transformation from unresolved InetSocketAddresses to
resolved InetSocketAddresses. The easiest way as I can see it is to create a new instance
of InetSocketAddress if the input is unresolved every time `next()` is called. Otherwise just
pass it through.
    JVM will deal with the rest: resolution, caching and re-resolution once the cache is expires
(30 secs).


View raw message