mridulm commented on code in PR #42323:
URL: https://github.com/apache/spark/pull/42323#discussion_r1284972469
##########
core/src/main/scala/org/apache/spark/MapOutputTracker.scala:
##########
@@ -171,7 +171,10 @@ private class ShuffleStatus(
* Get the map output that corresponding to a given mapId.
*/
def getMapStatus(mapId: Long): Option[MapStatus] = withReadLock {
- mapIdToMapIndex.get(mapId).map(mapStatuses(_))
+ mapIdToMapIndex.get(mapId).map(mapStatuses(_)) match {
Review Comment:
`filter` here would have been better.
--
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]