teamconfx commented on code in PR #27463:
URL: https://github.com/apache/flink/pull/27463#discussion_r2723451845
##########
flink-runtime/src/main/java/org/apache/flink/runtime/jobmaster/JobResult.java:
##########
@@ -147,11 +147,22 @@ public JobExecutionResult
toJobExecutionResult(ClassLoader classLoader)
exception = new JobExecutionException(jobId, "Job execution
failed.", cause);
} else if (jobStatus == JobStatus.CANCELED) {
exception = new JobCancellationException(jobId, "Job was
cancelled.", cause);
+ } else if (jobStatus == JobStatus.SUSPENDED) {
+ exception =
+ new JobExecutionException(
+ jobId,
+ "Job is in state SUSPENDED. This commonly
happens when the "
+ + "JobManager lost leadership. The job
may recover "
+ + "automatically if High Availability
and a persistent "
+ + "job store are configured. If
recovery is not possible "
+ + "(e.g., non-persistent
ExecutionPlanStore), the job "
+ + "needs to be resubmitted.",
+ cause);
} else {
exception =
new JobExecutionException(
jobId,
- "Job completed with illegal status: " +
jobStatus + '.',
+ "Job completed with unexpected status: " +
jobStatus + '.',
Review Comment:
Will do!
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]