reswqa commented on code in PR #21137:
URL: https://github.com/apache/flink/pull/21137#discussion_r1013644830


##########
flink-runtime/src/main/java/org/apache/flink/runtime/jobmaster/JobMasterServiceLeadershipRunner.java:
##########
@@ -151,10 +155,12 @@ public CompletableFuture<Void> closeAsync() {
                 FutureUtils.forward(serviceTerminationFuture, 
terminationFuture);
 
                 terminationFuture.whenComplete(
-                        (unused, throwable) ->
-                                LOG.debug(
-                                        "Leadership runner for job {} has been 
terminated.",
-                                        getJobID()));
+                        (unused, throwable) -> {
+                            LOG.debug(
+                                    "Leadership runner for job {} has been 
terminated.",
+                                    getJobID());
+                            handleLeaderEventExecutor.shutdown();
+                        });

Review Comment:
   good idea.



-- 
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]

Reply via email to