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

    https://github.com/apache/spark/pull/6397#discussion_r31384822
  
    --- Diff: 
core/src/main/scala/org/apache/spark/util/collection/ExternalSorter.scala ---
    @@ -778,41 +686,15 @@ private[spark] class ExternalSorter[K, V, C](
     
         context.taskMetrics.incMemoryBytesSpilled(memoryBytesSpilled)
         context.taskMetrics.incDiskBytesSpilled(diskBytesSpilled)
    -    context.taskMetrics.shuffleWriteMetrics.filter(_ => 
bypassMergeSort).foreach { m =>
    -      if (curWriteMetrics != null) {
    -        m.incShuffleBytesWritten(curWriteMetrics.shuffleBytesWritten)
    -        m.incShuffleWriteTime(curWriteMetrics.shuffleWriteTime)
    -        m.incShuffleRecordsWritten(curWriteMetrics.shuffleRecordsWritten)
    -      }
    -    }
     
         lengths
       }
     
    -  /**
    -   * Read a partition file back as an iterator (used in our iterator 
method)
    -   */
    -  private def readPartitionFile(writer: BlockObjectWriter): 
Iterator[Product2[K, C]] = {
    --- End diff --
    
    This was only called from one place, `partitionedIterator`, when 
`bypassMergeSort` is true.  `partitionedIterator`, in turn, is called when 
merging multiple spills.  Since `bypassMergeSort` no longer spills, then 
`partitionedIterator` would never be called and its `bypassMergeSort` merging 
code is no longer necessary.


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