Github user sryza commented on a diff in the pull request:

    https://github.com/apache/spark/pull/2504#discussion_r24645659
  
    --- Diff: core/src/main/scala/org/apache/spark/Aggregator.scala ---
    @@ -54,14 +55,13 @@ case class Aggregator[K, V, C] (
           }
           combiners.iterator
         } else {
    -      val combiners = new ExternalAppendOnlyMap[K, V, C](createCombiner, 
mergeValue, mergeCombiners)
    -      combiners.insertAll(iter)
    -      // Update task metrics if context is not null
           // TODO: Make context non optional in a future release
    -      Option(context).foreach { c =>
    -        c.taskMetrics.memoryBytesSpilled += combiners.memoryBytesSpilled
    -        c.taskMetrics.diskBytesSpilled += combiners.diskBytesSpilled
    -      }
    +      val spillMetrics = Option(context).map(
    +        _.taskMetrics.getOrCreateShuffleReadSpillMetrics()).getOrElse(new 
WriteMetrics())
    --- End diff --
    
    Ah yeah, looks like this is a copy/paste mistake.  In this path, I think 
we're always on the map side, so the call should just be 
`getOrCreateShuffleWriteSpillMetrics`.


---
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]

Reply via email to