HBASE-10274 MiniZookeeperCluster should close ZKDatabase when shutdown ZooKeeperServers (chendihao via enis)
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1557919 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
00ad1cf236
commit
185aec9c24
|
@ -270,6 +270,8 @@ public class MiniZooKeeperCluster {
|
|||
throw new IOException("Waiting for shutdown of standalone server");
|
||||
}
|
||||
|
||||
zooKeeperServers.get(activeZKServerIndex).getZKDatabase().close();
|
||||
|
||||
// remove the current active zk server
|
||||
standaloneServerFactoryList.remove(activeZKServerIndex);
|
||||
clientPortList.remove(activeZKServerIndex);
|
||||
|
@ -311,6 +313,8 @@ public class MiniZooKeeperCluster {
|
|||
throw new IOException("Waiting for shutdown of standalone server");
|
||||
}
|
||||
|
||||
zooKeeperServers.get(backupZKServerIndex).getZKDatabase().close();
|
||||
|
||||
// remove this backup zk server
|
||||
standaloneServerFactoryList.remove(backupZKServerIndex);
|
||||
clientPortList.remove(backupZKServerIndex);
|
||||
|
|
Loading…
Reference in New Issue