LakshSingla commented on code in PR #13475:
URL: https://github.com/apache/druid/pull/13475#discussion_r1037778390


##########
extensions-core/multi-stage-query/src/main/java/org/apache/druid/msq/exec/WorkerSketchFetcher.java:
##########
@@ -155,7 +152,17 @@ CompletableFuture<Either<Long, ClusterByPartitions>> 
inMemoryFullSketchMerging(
             mergedStatisticsCollector.clear();
           }
         }
-      });
+      }));
+    });
+
+    partitionFuture.whenComplete((result, exception) -> {

Review Comment:
   Is this a failsafe condition or would this be required? From my 
understanding, the successful completion of partitionFuture depends on the 
completion of the underlying futures, and in case of unsuccessful completion, 
we shouldn't have any issue with prematurely cancelling any underlying future. 
I might have missed something though. 



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

To unsubscribe, e-mail: [email protected]

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to