Ngone51 commented on a change in pull request #31480:
URL: https://github.com/apache/spark/pull/31480#discussion_r594381524
##########
File path:
core/src/main/scala/org/apache/spark/util/collection/ExternalSorter.scala
##########
@@ -672,6 +672,22 @@ private[spark] class ExternalSorter[K, V, C](
partitionedIterator.flatMap(pair => pair._2)
}
+ /**
+ * Return an iterator over all the data written to this object, aggregated
by our aggregator.
+ * On task completion (success, failure, or cancellation), it updates
related task metrics,
Review comment:
IIUC, we only do `stop()` on task completion. Task metrics updates
happen once we call `completionIterator`. Could you reword it more accurately?
----------------------------------------------------------------
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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]