HBASE-6822. [WINDOWS] MiniZookeeperCluster multiple daemons bind to the same port

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1407286 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Enis Soztutar 2012-11-08 22:07:37 +00:00
parent eded9b6b1f
commit 3b07b3fdc3
1 changed files with 1 additions and 0 deletions

View File

@ -187,6 +187,7 @@ public class MiniZooKeeperCluster {
clientPortList.add(tentativePort);
standaloneServerFactoryList.add(standaloneServerFactory);
zooKeeperServers.add(server);
tentativePort++; //for the next server
}
// set the first one to be active ZK; Others are backups