提交 4820ebaf 编写于 作者: U Ufuk Celebi

[Distributed runtime] Fail task if execution state update is unsuccessful

上级 0297d60c
......@@ -729,6 +729,14 @@ public class TaskManager implements TaskOperationProtocol {
boolean success = false;
try {
success = this.jobManager.updateTaskExecutionState(new TaskExecutionState(jobID, executionId, newExecutionState, optionalError));
if (!success) {
Task task = runningTasks.get(executionId);
if (task != null) {
task.failExternally(new IllegalStateException("Task has been disposed on JobManager."));
}
}
}
catch (Throwable t) {
String msg = "Error sending task state update to JobManager.";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册