hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e...@apache.org
Subject svn commit: r1557919 - /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
Date Tue, 14 Jan 2014 03:29:20 GMT
Author: enis
Date: Tue Jan 14 03:29:20 2014
New Revision: 1557919

URL: http://svn.apache.org/r1557919
Log:
HBASE-10274 MiniZookeeperCluster should close ZKDatabase when shutdown ZooKeeperServers (chendihao
via enis)

Modified:
    hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java

Modified: hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java?rev=1557919&r1=1557918&r2=1557919&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
(original)
+++ hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
Tue Jan 14 03:29:20 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);



Mime
View raw message