Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-10591

Compression codecs must used pooled direct buffers or deallocate direct buffers when stream is closed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 2.6.0
    • None
    • None

    Description

      Currently direct buffers allocated by compression codecs like Gzip (which allocates 2 direct buffers per instance) are not deallocated when the stream is closed. Eventually for long running processes which create a huge number of files, these direct buffers are left hanging till a full gc, which may or may not happen in a reasonable amount of time - especially if the process does not use a whole lot of heap.

      Either these buffers should be pooled or they should be deallocated when the stream is closed.

      Attachments

        1. HADOOP-10591.001.patch
          12 kB
          Colin McCabe
        2. HADOOP-10591.002.patch
          12 kB
          Colin McCabe

        Issue Links

          Activity

            People

              cmccabe Colin McCabe
              hshreedharan Hari Shreedharan
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: