WencongLiu commented on code in PR #22341:
URL: https://github.com/apache/flink/pull/22341#discussion_r1288110488
##########
flink-runtime/src/main/java/org/apache/flink/runtime/dispatcher/Dispatcher.java:
##########
@@ -561,21 +563,28 @@ public CompletableFuture<Acknowledge> submitFailedJob(
return archiveExecutionGraphToHistoryServer(executionGraphInfo);
}
+ /**
+ * Checks whether the given job has already been submitted, executed, or
awaiting termination.
+ *
+ * @param jobId identifying the submitted job
+ * @return true if the job has already been submitted (is running) or has
been executed
+ * @throws Exception if the job scheduling status cannot be retrieved
+ */
+ private boolean isDuplicateJob(JobID jobId) throws Exception {
+ return isInGloballyTerminalState(jobId).get()
+ || jobManagerRunnerRegistry.isRegistered(jobId)
+ || submittedAndWaitingTerminationJobIDs.contains(jobId);
+ }
+
Review Comment:
These codes is removed now.
--
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]