You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Kapil Thangavelu (JIRA)" <ji...@apache.org> on 2012/12/27 19:24:13 UTC
[jira] [Commented] (ZOOKEEPER-762) Allow dynamic addition/removal
of server nodes in the client API
[ https://issues.apache.org/jira/browse/ZOOKEEPER-762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13540090#comment-13540090 ]
Kapil Thangavelu commented on ZOOKEEPER-762:
--------------------------------------------
It looks like this issue can be closed given the resolution of ZOOKEEPER-1355
> Allow dynamic addition/removal of server nodes in the client API
> ----------------------------------------------------------------
>
> Key: ZOOKEEPER-762
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-762
> Project: ZooKeeper
> Issue Type: Sub-task
> Components: c client, java client
> Reporter: Dave Wright
> Priority: Minor
> Attachments: 762.diff
>
>
> Currently the list of zookeeper servers needs to be provided to the client APIs at construction time, and cannot be changed without a complete shutdown/restart of the client API. However, there are scenarios that require the server list to be updated, such as removal or addition of a ZK cluster node, and it would be nice if the list could be updated via a simple API call.
> The general approach (in the Java client) would be to "RemoveServer()/AddServer()" functions for Zookeeper that calls down to ClientCnxn, where they are just maintained in a list. Of course if
> the server being removed is the one currently connected, we'd need to disconnect, but a simple call to disconnect() seems like it would resolve that and trigger the automatic re-connection logic.
> An equivalent change could be made in the C code.
> This change would also make dynamic cluster membership in ZOOKEEPER-107 easier to implement.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira