HBASE-11031 Revert

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1588627 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2014-04-19 09:11:02 +00:00
parent e542dac2a8
commit a262b2424e
1 changed files with 3 additions and 7 deletions

View File

@ -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);