Github user shivaram commented on a diff in the pull request:
https://github.com/apache/spark/pull/1697#discussion_r15681031
--- Diff: core/src/main/scala/org/apache/spark/MapOutputTracker.scala ---
@@ -284,6 +290,24 @@ private[spark] class MapOutputTrackerMaster(conf:
SparkConf)
cachedSerializedStatuses.contains(shuffleId) ||
mapStatuses.contains(shuffleId)
}
+ // Return the list of locations and blockSizes for each reducer.
+ def getStatusByReducer(shuffleId: Int): Option[Map[Int,
Array[(BlockManagerId, Long)]]] = {
--- End diff --
Added comments -- This method is not thread safe as TimestampedHashMap is
not thread safe. However we only call this from DAGScheduler which is single
threaded AFAIK
---
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.
---