From 5671ab600b2a3236094b9d793db345d4193a44bf Mon Sep 17 00:00:00 2001 From: jxiang Date: Tue, 13 Nov 2012 17:44:17 +0000 Subject: [PATCH] HBASE-7152 testShouldCheckMasterFailOverWhenMETAIsInOpenedState times out occasionally git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1408854 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/hadoop/hbase/master/TestMasterFailover.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestMasterFailover.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestMasterFailover.java index f7faeab5219..a66d4b76a8b 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestMasterFailover.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestMasterFailover.java @@ -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);