Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-8454

Update ShuffleBlockFetcherIterator.next to close previous stream when returning a new one

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Incomplete
    • None
    • None
    • Block Manager, Spark Core

    Description

      For context, see the PR comments at https://github.com/apache/spark/pull/6423#discussion_r31370774

      The current HashShuffleReader closes the input stream when all records have been read by using a NextIterator. However, we want the ShuffleBlockFetcherIterator to be more defensive about closing files and releasing memory to protect against other ShuffleReaders which may not.

      Attachments

        Activity

          People

            Unassigned Unassigned
            massie Matt Massie
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: