Github user wzhfy commented on a diff in the pull request:
https://github.com/apache/spark/pull/16677#discussion_r115642967
--- Diff: core/src/main/scala/org/apache/spark/MapOutputTracker.scala ---
@@ -156,12 +156,14 @@ private[spark] abstract class MapOutputTracker(conf:
SparkConf) extends Logging
// Synchronize on the returned array because, on the driver, it gets
mutated in place
statuses.synchronized {
val totalSizes = new Array[Long](dep.partitioner.numPartitions)
- for (s <- statuses) {
+ val numberOfOutput = new Array[Long](statuses.length)
+ statuses.zipWithIndex.map { case (s, index) =>
--- End diff --
map -> foreach
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]