protected void setFailure(final String source, final Throwable cause) { setFailure(new RemoteProcedureException(source, cause)); }
public static RemoteProcedureException fromProto(final ForeignExceptionMessage eem) { return new RemoteProcedureException(eem.getSource(), ForeignExceptionUtil.toException(eem)); } }
@Override protected Procedure<Void>[] execute(Void env) { state.add(name + "-execute"); if (failure != null) { setFailure(new RemoteProcedureException(name + "-failure", failure)); return null; } return subProcs; }
@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; }
procedure.setFailure(new RemoteProcedureException(msg, e));
if (subproc == null) { String msg = "subproc[" + i + "] is null, aborting the procedure"; procedure.setFailure(new RemoteProcedureException(msg, new IllegalArgumentIOException(msg))); return null;
protected void setFailure(final String source, final Throwable cause) { setFailure(new RemoteProcedureException(source, cause)); }
protected void setFailure(final String source, final Throwable cause) { setFailure(new RemoteProcedureException(source, cause)); }
protected void setFailure(final String source, final Throwable cause) { setFailure(new RemoteProcedureException(source, cause)); }
public static RemoteProcedureException fromProto(final ForeignExceptionMessage eem) { return new RemoteProcedureException(eem.getSource(), ForeignExceptionUtil.toException(eem)); } }
public static RemoteProcedureException fromProto(final ForeignExceptionMessage eem) { return new RemoteProcedureException(eem.getSource(), ForeignExceptionUtil.toException(eem)); } }
public static RemoteProcedureException fromProto(final ForeignExceptionMessage eem) { return new RemoteProcedureException(eem.getSource(), ForeignExceptionUtil.toIOException(eem)); } }
@Override protected Procedure[] execute(Void env) { state.add(name + "-execute"); if (failure != null) { setFailure(new RemoteProcedureException(name + "-failure", failure)); return null; } return subProcs; }
@Override protected Procedure<Void>[] execute(Void env) { state.add(name + "-execute"); if (failure != null) { setFailure(new RemoteProcedureException(name + "-failure", failure)); return null; } return subProcs; }
@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; }
procedure.setFailure(new RemoteProcedureException(msg, e));
procedure.setFailure(new RemoteProcedureException(msg, e));
if (subproc == null) { String msg = "subproc[" + i + "] is null, aborting the procedure"; procedure.setFailure(new RemoteProcedureException(msg, new IllegalArgumentIOException(msg))); return null;
if (subproc == null) { String msg = "subproc[" + i + "] is null, aborting the procedure"; procedure.setFailure(new RemoteProcedureException(msg, new IllegalArgumentIOException(msg))); return null;