HBASE-14647 Disable TestWALProcedureStoreOnHDFS#testWalRollOnLowReplication

This commit is contained in:
stack 2015-10-19 10:39:09 -07:00
parent b921ed4222
commit 8940be0597
1 changed files with 9 additions and 4 deletions

View File

@ -54,6 +54,7 @@ import org.apache.hadoop.hdfs.server.datanode.DataNode;
import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.mockito.Mockito;
@ -181,7 +182,7 @@ public class TestWALProcedureStoreOnHDFS {
reCount.get() < thread.length);
}
@Test(timeout=60000)
@Ignore ("Needs work") @Test(timeout=60000)
public void testWalRollOnLowReplication() throws Exception {
store.unregisterListener(stopProcedureListener);
store.registerListener(new ProcedureStore.ProcedureStoreListener() {
@ -190,6 +191,7 @@ public class TestWALProcedureStoreOnHDFS {
@Override
public void abortProcess() {
LOG.info("Aborted!!!!");
}
});
int dnCount = 0;
@ -202,9 +204,12 @@ public class TestWALProcedureStoreOnHDFS {
String msg = re.getMessage();
// We could get a sync failed here...if the test cluster is crawling such that DN recovery
// is taking a long time. If we've done enough passes, just finish up the test as a 'pass'
if (msg != null && msg.toLowerCase().contains("sync aborted") && i > 50) {
LOG.info("Returning early... We ran enough of this test", re);
return;
if (msg != null && msg.toLowerCase().contains("sync aborted")) {
LOG.info("i=" + i, re);
if (i > 50) {
LOG.info("Returning early... i=" + i + "...We ran enough of this test", re);
return;
}
}
throw re;
}