spark-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andrewor14 <>
Subject [GitHub] spark pull request: [SPARK-1103] [WIP] Automatic garbage collectio...
Date Thu, 13 Mar 2014 17:44:35 GMT
Github user andrewor14 commented on a diff in the pull request:
    --- Diff: core/src/main/scala/org/apache/spark/MapOutputTracker.scala ---
    @@ -273,8 +310,9 @@ private[spark] class MapOutputTrackerMaster(conf: SparkConf)
         // This might be called on the MapOutputTrackerMaster if we're running in local mode.
    -  def has(shuffleId: Int): Boolean = {
    -    cachedSerializedStatuses.get(shuffleId).isDefined || mapStatuses.contains(shuffleId)
    +  protected def cleanup(cleanupTime: Long) {
    +    mapStatuses.clearOldValues(cleanupTime)
    +    cachedSerializedStatuses.clearOldValues(cleanupTime)
    --- End diff --
    Not related to your patch, but looks like we over-indented in ```convertMapStatuses```
in L346, and GitHub won't let me comment down there.

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 or file a JIRA ticket
with INFRA.

View raw message