zhuzhurk commented on a change in pull request #9663:
[WIP][FLINK-12433][runtime] Implement DefaultScheduler stub
URL: https://github.com/apache/flink/pull/9663#discussion_r327079025
##########
File path:
flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/ExecutionGraph.java
##########
@@ -1485,6 +1525,20 @@ else if (!isRestartable &&
transitionState(currentState, JobStatus.FAILED, failu
}
}
+ public void failJob(Throwable cause) {
+ if (state == JobStatus.FAILING ||
state.isGloballyTerminalState()) {
+ return;
+ }
+
+ transitionState(JobStatus.FAILING);
+ initFailureCause(cause);
+
+ cancelVerticesAsync().whenComplete((aVoid, throwable) -> {
+ transitionState(JobStatus.FAILED);
Review comment:
The transition log will contain the cause if there is any.
Without the cause seems we do not log the information that why the job is
FAILING/FAILED?
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services