You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by en...@apache.org on 2014/01/14 04:30:00 UTC
svn commit: r1557920 -
/hbase/branches/0.98/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
Author: enis
Date: Tue Jan 14 03:30:00 2014
New Revision: 1557920
URL: http://svn.apache.org/r1557920
Log:
HBASE-10274 MiniZookeeperCluster should close ZKDatabase when shutdown ZooKeeperServers (chendihao via enis)
Modified:
hbase/branches/0.98/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
Modified: hbase/branches/0.98/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.98/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java?rev=1557920&r1=1557919&r2=1557920&view=diff
==============================================================================
--- hbase/branches/0.98/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java (original)
+++ hbase/branches/0.98/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java Tue Jan 14 03:30:00 2014
@@ -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);