hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject svn commit: r1204098 - in /hbase/branches/0.92: CHANGES.txt src/test/java/org/apache/hadoop/hbase/client/TestAdmin.java
Date Sat, 19 Nov 2011 22:16:52 GMT
Author: apurtell
Date: Sat Nov 19 22:16:52 2011
New Revision: 1204098

URL: http://svn.apache.org/viewvc?rev=1204098&view=rev
Log:
HBASE-4827 TestAdmin should clean up resources after tests

Modified:
    hbase/branches/0.92/CHANGES.txt
    hbase/branches/0.92/src/test/java/org/apache/hadoop/hbase/client/TestAdmin.java

Modified: hbase/branches/0.92/CHANGES.txt
URL: http://svn.apache.org/viewvc/hbase/branches/0.92/CHANGES.txt?rev=1204098&r1=1204097&r2=1204098&view=diff
==============================================================================
--- hbase/branches/0.92/CHANGES.txt (original)
+++ hbase/branches/0.92/CHANGES.txt Sat Nov 19 22:16:52 2011
@@ -451,6 +451,7 @@ Release 0.92.0 - Unreleased
    HBASE-4816  Regionserver wouldn't go down because split happened exactly at same time
                we issued bulk user region close call on our way out
    HBASE-4815  Disable online altering by default, create a config for it
+   HBASE-4827  TestAdmin should clean up resources after tests
 
   IMPROVEMENTS
    HBASE-3290  Max Compaction Size (Nicolas Spiegelberg via Stack)  

Modified: hbase/branches/0.92/src/test/java/org/apache/hadoop/hbase/client/TestAdmin.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.92/src/test/java/org/apache/hadoop/hbase/client/TestAdmin.java?rev=1204098&r1=1204097&r2=1204098&view=diff
==============================================================================
--- hbase/branches/0.92/src/test/java/org/apache/hadoop/hbase/client/TestAdmin.java (original)
+++ hbase/branches/0.92/src/test/java/org/apache/hadoop/hbase/client/TestAdmin.java Sat Nov
19 22:16:52 2011
@@ -64,6 +64,7 @@ import org.apache.hadoop.hbase.util.Byte
 import org.apache.hadoop.hbase.zookeeper.ZKAssign;
 import org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher;
 import org.apache.zookeeper.KeeperException;
+import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Before;
 import org.junit.BeforeClass;
@@ -99,6 +100,11 @@ public class TestAdmin {
     this.admin = new HBaseAdmin(TEST_UTIL.getConfiguration());
   }
 
+  @After
+  public void tearDown() throws Exception {
+    this.admin.close();
+  }
+
   @Test
   public void testDeleteEditUnknownColumnFamilyAndOrTable() throws IOException {
     // Test we get exception if we try to 



Mime
View raw message