dongjoon-hyun commented on a change in pull request #26017: [SPARK-29351][CORE]
Avoid Full Synchronization in ShuffleMapStage
URL: https://github.com/apache/spark/pull/26017#discussion_r331288849
##########
File path: core/src/main/scala/org/apache/spark/MapOutputTracker.scala
##########
@@ -113,7 +136,7 @@ private class ShuffleStatus(numPartitions: Int) {
* Removes all shuffle outputs associated with this host. Note that this
will also remove
* outputs which are served by an external shuffle server (if one exists).
*/
- def removeOutputsOnHost(host: String): Unit = {
+ def removeOutputsOnHost(host: String): Unit = withWriteLock {
Review comment:
We don't need `withWriteLock` here because `removeOutputsByFilter` is
already wrapped `withWriteLock`.
----------------------------------------------------------------
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]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]