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/04/02 13:16:57 UTC

[GitHub] [flink] pengkangjing commented on a change in pull request #8060: [FLINK-12021] Deploy execution in topological sorted order

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


With regards,
Apache Git Services