Lagrang commented on issue #863: ZOOKEEPER-3320: Leader election port stop listen when hostname unresolvable for some time URL: https://github.com/apache/zookeeper/pull/863#issuecomment-475969622 > An infinite loop is a better option, especially for the availability? because the container will be self-healing just a few minutes after its DNS is unresolvable, we cannot have a good evaluation of the retry times. I proposed two solutions in [ZOOKEEPER-3320](https://issues.apache.org/jira/projects/ZOOKEEPER/issues/ZOOKEEPER-3320), one is configurable retry, other is to remove retries at all. @enixon noted that such kind of error happens mostly in container environment. I agree with him, in non-container environment port binding can fail, for instance, when port already in use and indefinitely retry has no meaning. But from another point of view, today QuorumCnxManager.Listener extends `ZooKeeperThread`and if ZK server can't bind election port, it stop trying and process remains alive(and mostly useless at this point). Maybe `QuorumCnxManager.Listener` should extends `ZookeeperCriticalThread`?
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
