diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestSplitTransactionOnCluster.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestSplitTransactionOnCluster.java index 29a91075cfd..f8651c2906d 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestSplitTransactionOnCluster.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestSplitTransactionOnCluster.java @@ -565,6 +565,7 @@ public class TestSplitTransactionOnCluster { rst.getRegionServer().compactedFileDischarger.setUseExecutor(oldSetting); } cluster.getMaster().setCatalogJanitorEnabled(true); + ProcedureTestingUtility.waitAllProcedures(cluster.getMaster().getMasterProcedureExecutor()); LOG.info("Starting run of CatalogJanitor"); cluster.getMaster().getCatalogJanitor().run(); ProcedureTestingUtility.waitAllProcedures(cluster.getMaster().getMasterProcedureExecutor());