HBASE-22733 TestSplitTransactionOnCluster.testMasterRestartAtRegionSplitPendingCatalogJanitor is flakey (#408)

Signed-off-by: stack <stack@apache.org>
This commit is contained in:
linkaline 2019-07-26 02:09:07 +08:00 committed by Michael Stack
parent de98fee288
commit 747d000808

View File

@ -541,6 +541,7 @@ public class TestSplitTransactionOnCluster {
rst.getRegionServer().compactedFileDischarger.setUseExecutor(oldSetting); rst.getRegionServer().compactedFileDischarger.setUseExecutor(oldSetting);
} }
cluster.getMaster().setCatalogJanitorEnabled(true); cluster.getMaster().setCatalogJanitorEnabled(true);
ProcedureTestingUtility.waitAllProcedures(cluster.getMaster().getMasterProcedureExecutor());
LOG.info("Starting run of CatalogJanitor"); LOG.info("Starting run of CatalogJanitor");
cluster.getMaster().getCatalogJanitor().run(); cluster.getMaster().getCatalogJanitor().run();
ProcedureTestingUtility.waitAllProcedures(cluster.getMaster().getMasterProcedureExecutor()); ProcedureTestingUtility.waitAllProcedures(cluster.getMaster().getMasterProcedureExecutor());