Github user anmolnar commented on the issue:

    https://github.com/apache/zookeeper/pull/451
  
    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).


---

Reply via email to