Avoid permanent caching of server IPs in the client
----------------------------------------------------
Key: ZOOKEEPER-1356
URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1356
Project: ZooKeeper
Issue Type: Bug
Components: java client
Affects Versions: 3.4.2, 3.3.4
Reporter: Neha Narkhede
Assignee: Neha Narkhede
Relevant conversation on the dev mailing list -
https://email.corp.linkedin.com/owa/redir.aspx?C=87f3d1e78c96438c8115e450f410d010&URL=http%3a%2f%2fmarkmail.org%2fmessage%2f3vzynx6rgurubf3p%3fq%3dPerforming%2bno%2bdowntime%2bhardware%2bchanges%2bto%2ba%2blive%2bzookeeper%2bcluster%2blist%3aorg%252Eapache%252Ehadoop%252Ezookeeper-dev
Basically, the client caches the list of server IPs internally and maintains
that list for the entire lifetime of the client. This limits the ability to
remove/change a server node from a zookeeper cluster, without having to restart
every client. Also, two levels of IP caching, one in the JVM and one in the
zookeeper client code seems unnecessar.
It would be ideal to provide a config option that would turn off this IP
caching in the client and re-resolve the host names during the reconnect.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira