HBASE-14701 Fix flakey Failed tests: TestMobFlushSnapshotFromClient>TestFlushSnapshotFromClient.testSkipFlushTableSnapshot:199 null (Jingcheng Du)

This commit is contained in:
stack 2015-12-12 19:34:23 -08:00
parent 453a66c3b9
commit f34d3e1d26
1 changed files with 2 additions and 1 deletions

View File

@ -160,7 +160,7 @@ public class TestFlushSnapshotFromClient {
* Test snapshotting a table that is online without flushing * Test snapshotting a table that is online without flushing
* @throws Exception * @throws Exception
*/ */
@Ignore ("Flakey test") @Test(timeout=30000) @Test(timeout=30000)
public void testSkipFlushTableSnapshot() throws Exception { public void testSkipFlushTableSnapshot() throws Exception {
Admin admin = UTIL.getHBaseAdmin(); Admin admin = UTIL.getHBaseAdmin();
// make sure we don't fail on listing snapshots // make sure we don't fail on listing snapshots
@ -169,6 +169,7 @@ public class TestFlushSnapshotFromClient {
// put some stuff in the table // put some stuff in the table
Table table = UTIL.getConnection().getTable(TABLE_NAME); Table table = UTIL.getConnection().getTable(TABLE_NAME);
UTIL.loadTable(table, TEST_FAM); UTIL.loadTable(table, TEST_FAM);
UTIL.flush(TABLE_NAME);
LOG.debug("FS state before snapshot:"); LOG.debug("FS state before snapshot:");
UTIL.getHBaseCluster().getMaster().getMasterFileSystem().logFileSystemState(LOG); UTIL.getHBaseCluster().getMaster().getMasterFileSystem().logFileSystemState(LOG);