You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2019/01/28 11:08:27 UTC

[GitHub] azagrebin commented on a change in pull request #7565: [FLINK-11400] Linearize leadership operations in JobManagerRunner

azagrebin commented on a change in pull request #7565: [FLINK-11400] Linearize leadership operations in JobManagerRunner
URL: https://github.com/apache/flink/pull/7565#discussion_r251359483
 
 

 ##########
 File path: flink-runtime/src/main/java/org/apache/flink/runtime/jobmaster/JobMaster.java
 ##########
 @@ -1091,12 +1093,12 @@ private Acknowledge suspendExecution(final Exception cause) {
 		suspendAndClearExecutionGraphFields(cause);
 
 		// the slot pool stops receiving messages and clears its pooled slots
-		slotPoolGateway.suspend();
+		CompletableFuture<Acknowledge> slotPoolSuspendFuture = slotPoolGateway.suspend();
 
 		// disconnect from resource manager:
 		closeResourceManagerConnection(cause);
 
-		return Acknowledge.get();
+		return slotPoolSuspendFuture;
 
 Review comment:
   should `closeResourceManagerConnection` not be synchronously called after `slotPoolSuspendFuture`?
   `slotPool.suspend` looks still synchronous, why does it need to have asynchronous signature?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services