Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-4496

Fix CBZip2InputStream to close underlying stream

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Pending Closed
    • 0.12.0, 0.15.0
    • 0.15.0
    • tools
    • None
    • Reviewed

    Description

      CBZip2InputStream doesn't close the underlying FSDataInputStream when itself is closed. However, users such as BZip2LineRecordReader and XMLLoader assume CBZip2InputStream will do so. This leads to leaking resources and possible failure in reading the next split depending on the FileSystem implementation.

      Attachments

        1. PIG-4496-2.patch
          12 kB
          Daniel Dai
        2. PIG-4496.1.patch
          12 kB
          Peter Slawski

        Activity

          People

            petersla Peter Slawski
            petersla Peter Slawski
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: