HBASE-7152 testShouldCheckMasterFailOverWhenMETAIsInOpenedState times out occasionally

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1408854 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
jxiang 2012-11-13 17:44:17 +00:00
parent 2f42b768a3
commit 5671ab600b
1 changed files with 4 additions and 0 deletions

View File

@ -894,6 +894,10 @@ public class TestMasterFailover {
LOG.info("Staring cluster for second time"); LOG.info("Staring cluster for second time");
TEST_UTIL.startMiniHBaseCluster(NUM_MASTERS, NUM_RS); TEST_UTIL.startMiniHBaseCluster(NUM_MASTERS, NUM_RS);
HMaster master = TEST_UTIL.getHBaseCluster().getMaster();
while (!master.isInitialized()) {
Thread.sleep(100);
}
// Failover should be completed, now wait for no RIT // Failover should be completed, now wait for no RIT
log("Waiting for no more RIT"); log("Waiting for no more RIT");
ZKAssign.blockUntilNoRIT(zkw); ZKAssign.blockUntilNoRIT(zkw);