hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject svn commit: r1582926 - /hbase/branches/0.98/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestAtomicOperation.java
Date Sat, 29 Mar 2014 00:53:42 GMT
Author: tedyu
Date: Sat Mar 29 00:53:42 2014
New Revision: 1582926

URL: http://svn.apache.org/r1582926
Log:
HBASE-10868 TestAtomicOperation should close HRegion instance after each subtest


Modified:
    hbase/branches/0.98/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestAtomicOperation.java

Modified: hbase/branches/0.98/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestAtomicOperation.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.98/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestAtomicOperation.java?rev=1582926&r1=1582925&r2=1582926&view=diff
==============================================================================
--- hbase/branches/0.98/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestAtomicOperation.java
(original)
+++ hbase/branches/0.98/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestAtomicOperation.java
Sat Mar 29 00:53:42 2014
@@ -63,6 +63,7 @@ import org.apache.hadoop.hbase.filter.Co
 import org.apache.hadoop.hbase.io.HeapSize;
 import org.apache.hadoop.hbase.regionserver.wal.HLog;
 import org.apache.hadoop.hbase.util.Bytes;
+import org.junit.After;
 import org.junit.Before;
 import org.junit.Rule;
 import org.junit.Test;
@@ -97,6 +98,13 @@ public class TestAtomicOperation {
     tableName = Bytes.toBytes(name.getMethodName());
   }
   
+  @After
+  public void teardown() throws IOException {
+    if (region != null) {
+      region.close();
+      region = null;
+    }
+  }
   //////////////////////////////////////////////////////////////////////////////
   // New tests that doesn't spin up a mini cluster but rather just test the
   // individual code pieces in the HRegion. 
@@ -641,4 +649,4 @@ public class TestAtomicOperation {
       }
     }
   }
-}
\ No newline at end of file
+}



Mime
View raw message