tillrohrmann commented on a change in pull request #14948: URL: https://github.com/apache/flink/pull/14948#discussion_r588365069
########## File path: flink-runtime/src/main/java/org/apache/flink/runtime/jobmaster/JobMaster.java ########## @@ -430,14 +430,30 @@ protected void onStart() throws JobMasterException { final TaskExecutionState taskExecutionState) { checkNotNull(taskExecutionState, "taskExecutionState"); - if (schedulerNG.updateTaskExecutionState(taskExecutionState)) { - return CompletableFuture.completedFuture(Acknowledge.get()); - } else { - return FutureUtils.completedExceptionally( - new ExecutionGraphException( - "The execution attempt " - + taskExecutionState.getID() - + " was not found.")); + try { + if (schedulerNG.updateTaskExecutionState(taskExecutionState)) { Review comment: In general it is ok but I would not introduce the complex logic when and when not to send the exception back. Either we fail fatally whenever an exception occurs here or we send it back and the receiver has to make sure that this is logged somehow. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org