diff --git a/hbase-rsgroup/src/test/java/org/apache/hadoop/hbase/rsgroup/TestEnableRSGroup.java b/hbase-rsgroup/src/test/java/org/apache/hadoop/hbase/rsgroup/TestEnableRSGroup.java index bf9ef149c69..1407a5b94f2 100644 --- a/hbase-rsgroup/src/test/java/org/apache/hadoop/hbase/rsgroup/TestEnableRSGroup.java +++ b/hbase-rsgroup/src/test/java/org/apache/hadoop/hbase/rsgroup/TestEnableRSGroup.java @@ -66,6 +66,7 @@ public class TestEnableRSGroup { @Test public void testEnableRSGroup() throws IOException, InterruptedException { TEST_UTIL.getMiniHBaseCluster().stopMaster(0); + TEST_UTIL.getMiniHBaseCluster().waitOnMaster(0); LOG.info("stopped master..."); conf.set(CoprocessorHost.MASTER_COPROCESSOR_CONF_KEY, RSGroupAdminEndpoint.class.getName());