HBASE-21334 TestMergeTableRegionsProcedure is flakey
This commit is contained in:
parent
ae5308ac4a
commit
dd474ef199
|
@ -510,13 +510,18 @@ public class MasterProcedureTestingUtility {
|
|||
// Sometimes there are other procedures still executing (including asynchronously spawned by
|
||||
// procId) and due to KillAndToggleBeforeStoreUpdate flag ProcedureExecutor is stopped before
|
||||
// store update. Let all pending procedures finish normally.
|
||||
if (!procExec.isRunning()) {
|
||||
LOG.warn("ProcedureExecutor not running, may have been stopped by pending procedure due to"
|
||||
+ " KillAndToggleBeforeStoreUpdate flag.");
|
||||
ProcedureTestingUtility.setKillAndToggleBeforeStoreUpdate(procExec, false);
|
||||
// check 3 times to confirm that the procedure executor has not been killed
|
||||
for (int i = 0; i < 3; i++) {
|
||||
if (!procExec.isRunning()) {
|
||||
LOG.warn("ProcedureExecutor not running, may have been stopped by pending procedure due" +
|
||||
" to KillAndToggleBeforeStoreUpdate flag.");
|
||||
restartMasterProcedureExecutor(procExec);
|
||||
ProcedureTestingUtility.waitNoProcedureRunning(procExec);
|
||||
break;
|
||||
}
|
||||
Thread.sleep(1000);
|
||||
}
|
||||
ProcedureTestingUtility.waitNoProcedureRunning(procExec);
|
||||
}
|
||||
|
||||
assertEquals(true, procExec.isRunning());
|
||||
|
|
Loading…
Reference in New Issue