summaryzb commented on code in PR #1265:
URL: 
https://github.com/apache/incubator-uniffle/pull/1265#discussion_r1374309146


##########
client-spark/spark3/src/main/java/org/apache/spark/shuffle/writer/RssShuffleWriter.java:
##########
@@ -442,6 +442,8 @@ public Option<MapStatus> stop(boolean success) {
         return Option.empty();
       }
     } finally {
+      // cancel all async thread task related
+      sendingSet.stream().forEach(eventTask -> eventTask.cancel(true));

Review Comment:
   > If the task held by this future is still in the queue of dataPusher, the 
cancel operation will not be valid?
   
   It will mark the result of the runnable, when the implementation 
`AsyncSupply` of runnable is executed,  since the result is set, directtly skip 
the execution of   the actual  `Supplier` function



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