From a262b2424efe1427e78dc731f647e8cbc488991e Mon Sep 17 00:00:00 2001 From: Zhihong Yu Date: Sat, 19 Apr 2014 09:11:02 +0000 Subject: [PATCH] HBASE-11031 Revert git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1588627 13f79535-47bb-0310-9956-ffa450edef68 --- .../hadoop/hbase/regionserver/wal/TestLogRolling.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestLogRolling.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestLogRolling.java index a0802086c21..d218c5020a9 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestLogRolling.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestLogRolling.java @@ -172,8 +172,7 @@ public class TestLogRolling { private void startAndWriteData() throws IOException, InterruptedException { // When the hbase:meta table can be opened, the region servers are running - HTable ht = new HTable(TEST_UTIL.getConfiguration(), TableName.META_TABLE_NAME); - ht.close(); + new HTable(TEST_UTIL.getConfiguration(), TableName.META_TABLE_NAME); this.server = cluster.getRegionServerThreads().get(0).getRegionServer(); this.log = server.getWAL(); @@ -208,7 +207,6 @@ public class TestLogRolling { newLog.rollWriter(true); } finally { newLog.closeAndDelete(); - fs.close(); } } @@ -429,8 +427,7 @@ public class TestLogRolling { fs.getDefaultReplication() > 1); LOG.info("Replication=" + fs.getDefaultReplication()); // When the hbase:meta table can be opened, the region servers are running - HTable ht = new HTable(TEST_UTIL.getConfiguration(), TableName.META_TABLE_NAME); - ht.close(); + new HTable(TEST_UTIL.getConfiguration(), TableName.META_TABLE_NAME); this.server = cluster.getRegionServer(0); this.log = server.getWAL(); @@ -587,8 +584,7 @@ public class TestLogRolling { @Test public void testCompactionRecordDoesntBlockRolling() throws Exception { // When the hbase:meta table can be opened, the region servers are running - HTable ht = new HTable(TEST_UTIL.getConfiguration(), TableName.META_TABLE_NAME); - ht.close(); + new HTable(TEST_UTIL.getConfiguration(), TableName.META_TABLE_NAME); String tableName = getName(); HTable table = createTestTable(tableName);