pengkangjing commented on a change in pull request #8060: [FLINK-12021] Deploy 
execution in topological sorted order
URL: https://github.com/apache/flink/pull/8060#discussion_r271297840
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/concurrent/FutureUtils.java
 ##########
 @@ -598,8 +593,11 @@ private void handleCompletedFuture(T value, Throwable 
throwable) {
                                complete(Collections.emptyList());
                        }
                        else {
+                               int counter = 0;
                                for (CompletableFuture<? extends T> future : 
resultFutures) {
-                                       
future.whenComplete(this::handleCompletedFuture);
+                                       final int index = counter;
+                                       counter++;
+                                       future.whenComplete((value, throwable) 
-> handleCompletedFuture(index, value, throwable));
 
 Review comment:
   test

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