hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From la...@apache.org
Subject svn commit: r1513301 - /hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/client/TestHTablePool.java
Date Mon, 12 Aug 2013 23:54:36 GMT
Author: larsh
Date: Mon Aug 12 23:54:36 2013
New Revision: 1513301

URL: http://svn.apache.org/r1513301
Log:
HBASE-9146 TestHTablePool hangs when run as part of runMediumTests profile (Rajesh Venkatachalam)

Modified:
    hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/client/TestHTablePool.java

Modified: hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/client/TestHTablePool.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/client/TestHTablePool.java?rev=1513301&r1=1513300&r2=1513301&view=diff
==============================================================================
--- hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/client/TestHTablePool.java (original)
+++ hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/client/TestHTablePool.java Mon
Aug 12 23:54:36 2013
@@ -21,9 +21,6 @@ package org.apache.hadoop.hbase.client;
 
 import java.io.IOException;
 
-import junit.framework.Assert;
-import junit.framework.TestCase;
-
 import org.apache.hadoop.hbase.*;
 import org.apache.hadoop.hbase.util.Bytes;
 import org.apache.hadoop.hbase.util.PoolMap.PoolType;
@@ -39,22 +36,23 @@ import org.junit.runners.Suite;
 @Suite.SuiteClasses({TestHTablePool.TestHTableReusablePool.class, TestHTablePool.TestHTableThreadLocalPool.class})
 @Category(MediumTests.class)
 public class TestHTablePool {
-	private static HBaseTestingUtility TEST_UTIL = new HBaseTestingUtility();
-	private final static byte[] TABLENAME = Bytes.toBytes("TestHTablePool");
+  private static HBaseTestingUtility TEST_UTIL = new HBaseTestingUtility();
+  private final static byte[] TABLENAME = Bytes.toBytes("TestHTablePool");
+
+  public abstract static class TestHTablePoolType {
 
     @BeforeClass
     public static void setUpBeforeClass() throws Exception {
-			TEST_UTIL.startMiniCluster(1);
-			TEST_UTIL.createTable(TABLENAME, HConstants.CATALOG_FAMILY);
-		}
+      TEST_UTIL.startMiniCluster(1);
+      TEST_UTIL.createTable(TABLENAME, HConstants.CATALOG_FAMILY);
+    }
 
     @AfterClass
-		public static void tearDownAfterClass() throws Exception {
-			TEST_UTIL.shutdownMiniCluster();
-		}
+    public static void tearDownAfterClass() throws Exception {
+      TEST_UTIL.shutdownMiniCluster();
+    }
 
-	public abstract static class TestHTablePoolType extends TestCase {
-		protected abstract PoolType getPoolType();
+    protected abstract PoolType getPoolType();
 
 		@Test
 		public void testTableWithStringName() throws Exception {



Mime
View raw message