suhasdantkale opened a new pull request #1259: ZOOKEEPER-3723 Zookeeper Client 
should not fail with ZSYSTEMERROR if DNS does not resolve one of the servers in 
the zk ensemble
URL: https://github.com/apache/zookeeper/pull/1259
 
 
   The change is backported from
   Jeelani Mohamed Abdul Khader <[email protected]>'s
   https://github.com/apache/zookeeper/pull/579 change done in
   "ZOOKEEPER-3095: Connect string fix for non-existent hosts"
   
   Code changes to not fail the session initiation if the DNS is not able to
   resolve the hostname of one of the servers in the Zookeeper ensemble.
   
   Some Background:
   The Zookeeper client resolves all the hostnames in the ensemble while 
establishing the session.
   In Kubernetes environment with coreDNS, the hostname entry gets removed from 
coreDNS during the POD restarts.
   Though we can manipulate the coreDNS settings to delay the removal of the 
hostname entry from DNS,
   we don't want to leave any race where Zookeeper client is trying to 
establish a session and it fails
   because the DNS temporarily is not able to resolve the hostname. So as long 
as one of the servers
   in the ensemble is able to be DNS resolvable, should we not fail the session 
establishment with hard error
   and instead try to establish the connection with one of the other servers

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

Reply via email to