venkata91 commented on a change in pull request #33896: URL: https://github.com/apache/spark/pull/33896#discussion_r746182875
########## File path: core/src/main/scala/org/apache/spark/MapOutputTracker.scala ########## @@ -922,7 +922,7 @@ private[spark] class MapOutputTrackerMaster( Runtime.getRuntime.availableProcessors(), statuses.length.toLong * totalSizes.length / parallelAggThreshold + 1).toInt if (parallelism <= 1) { - for (s <- statuses) { + statuses.filter(_ != null).foreach { s => Review comment: Based on this [comment](https://github.com/apache/spark/pull/33896#discussion_r744193682), we would need this `null` filtering right? If not the `MapOutputTracker.getStatistics` would throw NPE as we are also getting statistics in the cases when all the map outputs are not available (deterministic stage case) -- 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