HBASE-20907 Fix Intermittent failure on TestProcedurePriority
This commit is contained in:
parent
2bf5e46a33
commit
619e0fdab8
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue