zentol commented on a change in pull request #12815:
URL: https://github.com/apache/flink/pull/12815#discussion_r449617994



##########
File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/Execution.java
##########
@@ -753,8 +753,11 @@ public void deploy() throws JobException {
                                .thenCompose(Function.identity())
                                .whenCompleteAsync(
                                        (ack, failure) -> {
-                                               // only respond to the failure 
case
-                                               if (failure != null) {
+                                               if (failure == null) {
+                                                       getExecutionGraph()
+                                                               
.getExecutionDeploymentListener()
+                                                               
.onCompletedDeployment(attemptId, 
getAssignedResourceLocation().getResourceID());

Review comment:
       So just guard the call with `if (this == 
vertex.getCurrentExecutionAttempt())`?




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to