Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-5387

Reuse compression streams in HFileBlock.Writer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 0.94.0
    • 0.94.0
    • None
    • None
    • Reviewed

    Description

      We need to to reuse compression streams in HFileBlock.Writer instead of allocating them every time. The motivation is that when using Java's built-in implementation of Gzip, we allocate a new GZIPOutputStream object and an associated native data structure every time we create a compression stream. The native data structure is only deallocated in the finalizer. This is one suspected cause of recent TestHFileBlock failures on Hadoop QA: https://builds.apache.org/job/HBase-TRUNK/2658/testReport/org.apache.hadoop.hbase.io.hfile/TestHFileBlock/testPreviousOffset_1_/.

      Attachments

        1. Fix-deflater-leak-2012-02-10_18_48_45.patch
          12 kB
          Mikhail Gryzykhin
        2. ASF.LICENSE.NOT.GRANTED--D1719.1.patch
          10 kB
          Phabricator
        3. ASF.LICENSE.NOT.GRANTED--D1719.2.patch
          12 kB
          Phabricator
        4. Fix-deflater-leak-2012-02-11_17_13_10.patch
          13 kB
          Mikhail Gryzykhin
        5. ASF.LICENSE.NOT.GRANTED--D1719.3.patch
          16 kB
          Phabricator
        6. ASF.LICENSE.NOT.GRANTED--D1719.4.patch
          12 kB
          Phabricator
        7. ASF.LICENSE.NOT.GRANTED--D1719.5.patch
          12 kB
          Phabricator
        8. 5387.txt
          12 kB
          Ted Yu
        9. Fix-deflater-leak-2012-02-12_00_37_27.patch
          13 kB
          Mikhail Gryzykhin
        10. ASF.LICENSE.NOT.GRANTED--D1725.1.patch
          27 kB
          Phabricator
        11. ASF.LICENSE.NOT.GRANTED--D1725.2.patch
          15 kB
          Phabricator

        Activity

          People

            mikhail Mikhail Gryzykhin
            mikhail Mikhail Gryzykhin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: