azagrebin commented on a change in pull request #8362: [FLINK-11391] Introduce 
shuffle master interface
URL: https://github.com/apache/flink/pull/8362#discussion_r289427441
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/Execution.java
 ##########
 @@ -566,6 +619,67 @@ public void setInitialState(@Nullable 
JobManagerTaskRestore taskRestore) {
                }
        }
 
+       @VisibleForTesting
+       CompletableFuture<Execution> 
registerProducedPartitions(TaskManagerLocation location) {
+               assertRunningInJobMasterMainThread();
+
+               return FutureUtils.thenApplyAsyncIfNotDone(
+                       registerProducedPartitions(vertex, location, attemptId),
+                       
vertex.getExecutionGraph().getJobMasterMainThreadExecutor(),
+                       producedPartitionsCache -> {
+                               producedPartitions = producedPartitionsCache;
+                               return this;
+                       });
+       }
+
+       @VisibleForTesting
+       static CompletableFuture<Map<IntermediateResultPartitionID, 
ResultPartitionDeploymentDescriptor>> registerProducedPartitions(
 
 Review comment:
   why not? it is also easier to test without Execution mocking.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to