hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e...@apache.org
Subject hbase git commit: HBASE-13731 TestReplicationAdmin should clean up MiniZKCluster resource (Stephen Jiang)
Date Thu, 21 May 2015 18:13:54 GMT
Repository: hbase
Updated Branches:
  refs/heads/0.98 2b035259d -> 8f768c247


HBASE-13731 TestReplicationAdmin should clean up MiniZKCluster resource (Stephen Jiang)


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/8f768c24
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/8f768c24
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/8f768c24

Branch: refs/heads/0.98
Commit: 8f768c247a1bf55a65915aa7882f69a4053436e0
Parents: 2b03525
Author: tedyu <yuzhihong@gmail.com>
Authored: Thu May 21 10:25:51 2015 -0700
Committer: Enis Soztutar <enis@apache.org>
Committed: Thu May 21 11:12:57 2015 -0700

----------------------------------------------------------------------
 .../hbase/client/replication/TestReplicationAdmin.java      | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/8f768c24/hbase-server/src/test/java/org/apache/hadoop/hbase/client/replication/TestReplicationAdmin.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/replication/TestReplicationAdmin.java
b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/replication/TestReplicationAdmin.java
index 682c276..526ba16 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/replication/TestReplicationAdmin.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/replication/TestReplicationAdmin.java
@@ -26,6 +26,7 @@ import org.apache.commons.logging.LogFactory;
 import org.apache.hadoop.conf.Configuration;
 import org.apache.hadoop.hbase.*;
 import org.apache.hadoop.hbase.testclassification.MediumTests;
+import org.junit.AfterClass;
 import org.junit.BeforeClass;
 import org.junit.Test;
 import org.junit.experimental.categories.Category;
@@ -66,6 +67,14 @@ public class TestReplicationAdmin {
     admin = new ReplicationAdmin(conf);
   }
 
+  @AfterClass
+  public static void tearDownAfterClass() throws Exception {
+    if (admin != null) {
+      admin.close();
+    }
+    TEST_UTIL.shutdownMiniZKCluster();
+  }
+
   /**
    * Simple testing of adding and removing peers, basically shows that
    * all interactions with ZK work


Mime
View raw message