HBASE-20907 Fix Intermittent failure on TestProcedurePriority

This commit is contained in:
Yu Li 2018-07-18 16:02:59 +08:00
parent 2bf5e46a33
commit 619e0fdab8
1 changed files with 2 additions and 0 deletions

View File

@ -136,6 +136,8 @@ public class TestProcedurePriority {
.stream().filter(t -> !t.getRegionServer().getRegions(TableName.META_TABLE_NAME).isEmpty()) .stream().filter(t -> !t.getRegionServer().getRegions(TableName.META_TABLE_NAME).isEmpty())
.findAny().get(); .findAny().get();
HRegionServer rsNoMeta = UTIL.getOtherRegionServer(rsWithMetaThread.getRegionServer()); HRegionServer rsNoMeta = UTIL.getOtherRegionServer(rsWithMetaThread.getRegionServer());
// wait for NS table initialization to avoid our error inject affecting master initialization
UTIL.waitTableAvailable(TableName.NAMESPACE_TABLE_NAME);
FAIL = true; FAIL = true;
UTIL.getMiniHBaseCluster().killRegionServer(rsNoMeta.getServerName()); UTIL.getMiniHBaseCluster().killRegionServer(rsNoMeta.getServerName());
// wait until all the worker thread are stuck, which means that the stuck checker will start to // wait until all the worker thread are stuck, which means that the stuck checker will start to