Repository: hbase Updated Branches: refs/heads/branch-2 532d84d6d -> e464230bd
HBASE-20907 Fix Intermittent failure on TestProcedurePriority Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/e464230b Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/e464230b Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/e464230b Branch: refs/heads/branch-2 Commit: e464230bde66fa3f85e3ac7afed0437dca3bfe2e Parents: 532d84d Author: Yu Li <l...@apache.org> Authored: Wed Jul 18 16:02:59 2018 +0800 Committer: Yu Li <l...@apache.org> Committed: Thu Jul 19 12:01:16 2018 +0800 ---------------------------------------------------------------------- .../hadoop/hbase/master/procedure/TestProcedurePriority.java | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/e464230b/hbase-server/src/test/java/org/apache/hadoop/hbase/master/procedure/TestProcedurePriority.java ---------------------------------------------------------------------- diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/master/procedure/TestProcedurePriority.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/master/procedure/TestProcedurePriority.java index 9f5741c..7386b2f 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/master/procedure/TestProcedurePriority.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/master/procedure/TestProcedurePriority.java @@ -136,6 +136,8 @@ public class TestProcedurePriority { .stream().filter(t -> !t.getRegionServer().getRegions(TableName.META_TABLE_NAME).isEmpty()) .findAny().get(); 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; UTIL.getMiniHBaseCluster().killRegionServer(rsNoMeta.getServerName()); // wait until all the worker thread are stuck, which means that the stuck checker will start to