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:
parent
2f42b768a3
commit
5671ab600b
|
@ -894,6 +894,10 @@ public class TestMasterFailover {
|
|||
LOG.info("Staring cluster for second time");
|
||||
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
|
||||
log("Waiting for no more RIT");
|
||||
ZKAssign.blockUntilNoRIT(zkw);
|
||||
|
|
Loading…
Reference in New Issue