@Override public Void apply(Throwable failure) { if (failure instanceof TimeoutException) { String taskname = vertex.getTaskNameWithSubtaskIndex()+ " (" + attemptId + ')'; markFailed(new Exception( "Cannot deploy task " + taskname + " - TaskManager (" + getAssignedResourceLocation() + ") not responding after a timeout of " + timeout, failure)); } else { markFailed(failure); } return null; } }, executor);
@Override public Void apply(SimpleSlot simpleSlot, Throwable throwable) { if (simpleSlot != null) { try { deployToSlot(simpleSlot); } catch (Throwable t) { try { simpleSlot.releaseSlot(); } finally { markFailed(t); } } } else { markFailed(throwable); } return null; } });
markFailed(new Exception(message));
markFailed(new Exception(message));
markFailed(new Exception(message));
markFailed(new Exception(message));
(Execution ignored, Throwable throwable) -> { if (throwable != null) { markFailed(ExceptionUtils.stripCompletionException(throwable)); } else { try { deploy(); } catch (Throwable t) { markFailed(ExceptionUtils.stripCompletionException(t));
markFailed(new IllegalArgumentException("The slot allocation future has not been completed yet."));
markFailed(schedulingFailureCause);
markFailed(schedulingFailureCause);
String taskname = vertex.getTaskNameWithSubtaskIndex() + " (" + attemptId + ')'; markFailed(new Exception( "Cannot deploy task " + taskname + " - TaskManager (" + getAssignedResourceLocation() + ") not responding after a rpcTimeout of " + rpcTimeout, failure)); } else { markFailed(failure); markFailed(t); ExceptionUtils.rethrow(t);
String taskname = vertex.getTaskNameWithSubtaskIndex() + " (" + attemptId + ')'; markFailed(new Exception( "Cannot deploy task " + taskname + " - TaskManager (" + getAssignedResourceLocation() + ") not responding after a rpcTimeout of " + rpcTimeout, failure)); } else { markFailed(failure); markFailed(t); ExceptionUtils.rethrow(t);
markFailed(new Exception("Vertex received FINISHED message while being in state " + state)); return;
markFailed(new Exception("Vertex received FINISHED message while being in state " + state)); return;
markFailed(new Exception("Vertex received FINISHED message while being in state " + state)); return;
markFailed(new Exception("Vertex received FINISHED message while being in state " + state)); return;
attempt.markFailed(state.getError(userClassLoader), accumulators, state.getIOMetrics()); return true;
attempt.markFailed(state.getError(userClassLoader), accumulators, state.getIOMetrics()); return true;
attempt.markFailed(state.getError(userClassLoader), accumulators, state.getIOMetrics()); return true;
attempt.markFailed(state.getError(userClassLoader), accumulators, state.getIOMetrics()); return true;