Repository: hbase Updated Branches: refs/heads/branch-2.0 9c44f9594 -> f17c97bc1
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/f17c97bc Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/f17c97bc Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/f17c97bc Branch: refs/heads/branch-2.0 Commit: f17c97bc17a57c7226ff8eecbaaf54d1c540c08c Parents: 9c44f95 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:03:03 2018 +0800 ---------------------------------------------------------------------- .../hadoop/hbase/master/procedure/TestProcedurePriority.java | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/f17c97bc/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