mridulm commented on a change in pull request #32730:
URL: https://github.com/apache/spark/pull/32730#discussion_r644903480



##########
File path: core/src/main/scala/org/apache/spark/MapOutputTracker.scala
##########
@@ -234,6 +252,7 @@ private class ShuffleStatus(
     for (mapIndex <- mapStatuses.indices) {
       if (mapStatuses(mapIndex) != null && f(mapStatuses(mapIndex).location)) {
         _numAvailableMapOutputs -= 1
+        mapStatusesDeleted(mapIndex) = mapStatuses(mapIndex)

Review comment:
       You are right, the check on mapId and mapIndex ensure correctness. 
Thanks for clarifying !




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

Reply via email to