HBASE-25400 [Flakey Tests] branch-2 TestRegionMoveAndAbandon

This commit is contained in:
stack 2020-12-15 21:02:45 -08:00
parent 722cbe4294
commit 5eefe62e29
1 changed files with 2 additions and 1 deletions

View File

@ -102,8 +102,9 @@ public class TestRegionMoveAndAbandon {
LOG.info("Killing RS {}", rs1.getServerName());
// Stop RS1
cluster.killRegionServer(rs1.getServerName());
UTIL.waitFor(30_000, () -> rs1.isStopped() && !rs1.isAlive());
// Region should get moved to RS2
UTIL.waitTableAvailable(TableName.NAMESPACE_TABLE_NAME, 30_000);
UTIL.waitTableAvailable(TableName.NAMESPACE_TABLE_NAME, 60_000);
// Restart the master
LOG.info("Killing master {}", cluster.getMaster().getServerName());
cluster.killMaster(cluster.getMaster().getServerName());