HBASE-19558 TestRegionsOnMasterOptions hack so it works reliably
This commit is contained in:
parent
5e7d16a3ce
commit
3c78ad5215
|
@ -193,6 +193,15 @@ public class TestRegionsOnMasterOptions {
|
||||||
// still only carry system regions post crash.
|
// still only carry system regions post crash.
|
||||||
assertEquals(masterCount, mNewActualCount);
|
assertEquals(masterCount, mNewActualCount);
|
||||||
}
|
}
|
||||||
|
// Disable balancer and wait till RIT done else cluster won't go down.
|
||||||
|
TEST_UTIL.getAdmin().balancerSwitch(false, true);
|
||||||
|
while (true) {
|
||||||
|
if (!TEST_UTIL.getHBaseCluster().getMaster().getAssignmentManager().
|
||||||
|
isMetaRegionInTransition()) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
Threads.sleep(10);
|
||||||
|
}
|
||||||
} finally {
|
} finally {
|
||||||
LOG.info("Running shutdown of cluster");
|
LOG.info("Running shutdown of cluster");
|
||||||
TEST_UTIL.shutdownMiniCluster();
|
TEST_UTIL.shutdownMiniCluster();
|
||||||
|
|
Loading…
Reference in New Issue