pan3793 commented on code in PR #50277: URL: https://github.com/apache/spark/pull/50277#discussion_r2026845676
########## core/src/main/scala/org/apache/spark/storage/BlockManagerMasterEndpoint.scala: ########## @@ -418,7 +418,7 @@ class BlockManagerMasterEndpoint( if (externalShuffleServiceRemoveShuffleEnabled) { mapOutputTracker.shuffleStatuses.get(shuffleId).foreach { shuffleStatus => shuffleStatus.withMapStatuses { mapStatuses => - mapStatuses.foreach { mapStatus => + mapStatuses.filter(_ != null).foreach { mapStatus => Review Comment: @HyukjinKwon it's not an `Option` but an `Array`, and the status is not assigned before the map task is accomplished ``` val mapStatuses = new Array[MapStatus](numPartitions) ``` I think the fix is right. -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org