@Override protected Procedure[] execute(TestProcEnv env) throws InterruptedException { env.waitOnLatch(); LOG.debug("execute procedure " + this + " step=" + step); ProcedureTestingUtility.toggleKillBeforeStoreUpdate(procExecutor); step++; Threads.sleepWithoutInterrupt(procSleepInterval); if (isAborted()) { setFailure(new RemoteProcedureException(getClass().getName(), new ProcedureAbortedException( "got an abort at " + getClass().getName() + " step=" + step))); return null; } return null; }
private boolean isAborted() { boolean aborted = abort.get(); BaseTestStepProcedure proc = this; while (proc.hasParent() && !aborted) { proc = (BaseTestStepProcedure)procExecutor.getProcedure(proc.getParentProcId()); aborted = proc.isAborted(); } return aborted; } }
@Override protected Procedure[] execute(TestProcEnv env) throws InterruptedException { env.waitOnLatch(); LOG.debug("execute procedure " + this + " step=" + step); ProcedureTestingUtility.toggleKillBeforeStoreUpdate(procExecutor); step++; Threads.sleepWithoutInterrupt(procSleepInterval); if (isAborted()) { setFailure(new RemoteProcedureException(getClass().getName(), new ProcedureAbortedException( "got an abort at " + getClass().getName() + " step=" + step))); return null; } return null; }
@Override protected Procedure[] execute(TestProcEnv env) throws InterruptedException { env.waitOnLatch(); LOG.debug("execute procedure " + this + " step=" + step); ProcedureTestingUtility.toggleKillBeforeStoreUpdate(procExecutor); step++; Threads.sleepWithoutInterrupt(procSleepInterval); if (isAborted()) { setFailure(new RemoteProcedureException(getClass().getName(), new ProcedureAbortedException( "got an abort at " + getClass().getName() + " step=" + step))); return null; } return null; }
private boolean isAborted() { boolean aborted = abort.get(); BaseTestStepProcedure proc = this; while (proc.hasParent() && !aborted) { proc = (BaseTestStepProcedure)procExecutor.getProcedure(proc.getParentProcId()); aborted = proc.isAborted(); } return aborted; } }
private boolean isAborted() { boolean aborted = abort.get(); BaseTestStepProcedure proc = this; while (proc.hasParent() && !aborted) { proc = (BaseTestStepProcedure)procExecutor.getProcedure(proc.getParentProcId()); aborted = proc.isAborted(); } return aborted; } }