[ 
https://issues.apache.org/jira/browse/HBASE-3052?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Liyin Tang updated HBASE-3052:
------------------------------

    Attachment: HBASE_3052[r1084033].patch

I attached a new patch: HBASE_3052[r1084033].patch here.

In this patch, the miniZKCluster will start to run multiple ZK servers 
together. One of them is the current active one, others are the backup ZK 
servers.

So the client can killCurrentActiveZooKeeperServer or 
killOneBackupZooKeeperServer.

When calling killCurrentActiveZooKeeperServer, it will return next available 
backup ZooKeeper servers to client. If no more backups, return -1;

When calling killOneBackupZooKeeperServer, it will kill one backup if there are 
backups.





> Add ability to have multiple ZK servers in a quorum in MiniZooKeeperCluster 
> for test writing
> --------------------------------------------------------------------------------------------
>
>                 Key: HBASE-3052
>                 URL: https://issues.apache.org/jira/browse/HBASE-3052
>             Project: HBase
>          Issue Type: Improvement
>          Components: test, zookeeper
>            Reporter: Jonathan Gray
>            Assignee: Liyin Tang
>            Priority: Minor
>         Attachments: HBASE_3052[r1083993].patch, HBASE_3052[r1084033].patch
>
>
> Interesting things can happen when you have a ZK quorum of multiple servers 
> and one of them dies.  Doing testing here on clusters, this has turned up 
> some bugs with HBase interaction with ZK.
> Would be good to add the ability to have multiple ZK servers in unit tests 
> and be able to kill them individually.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to