cloud-fan commented on a change in pull request #25620: [SPARK-25341][Core]
Support rolling back a shuffle map stage and re-generate the shuffle files
URL: https://github.com/apache/spark/pull/25620#discussion_r325272960
##########
File path: core/src/main/scala/org/apache/spark/MapOutputTracker.scala
##########
@@ -88,23 +88,23 @@ private class ShuffleStatus(numPartitions: Int) {
* Register a map output. If there is already a registered location for the
map output then it
* will be replaced by the new location.
*/
- def addMapOutput(mapId: Int, status: MapStatus): Unit = synchronized {
- if (mapStatuses(mapId) == null) {
+ def addMapOutput(mapIndex: Int, status: MapStatus): Unit = synchronized {
Review comment:
This is a place that I think `mapIndex` makes sense.
----------------------------------------------------------------
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]