eemario commented on code in PR #27686:
URL: https://github.com/apache/flink/pull/27686#discussion_r2871994211
##########
flink-runtime/src/main/java/org/apache/flink/runtime/dispatcher/Dispatcher.java:
##########
@@ -664,11 +713,16 @@ private CompletableFuture<Acknowledge>
internalSubmitApplication(
log.info("Submitting application '{}' ({}).", application.getName(),
applicationId);
applications.put(applicationId, application);
- Set<JobID> jobs = recoveredApplicationJobIds.remove(applicationId);
- if (jobs != null) {
- jobs.forEach(application::addJob);
- }
application.registerStatusListener(this);
+ applicationTerminationFutures.put(applicationId, new
CompletableFuture<>());
+
+ // cleanup dirty job results for the application
Review Comment:
Perform cleanup (by creating a JobManagerRunner) during application
submission to ensure that the JobClient is available when the application
execution skips resubmitting already-terminated jobs and retrieve the JobClient
directly. The comments have been updated for clarity.
--
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]