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

Fix CBZip2InputStream to close underlying stream

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Pending Closed
    • Affects Version/s: 0.12.0, 0.15.0
    • Fix Version/s: 0.15.0
    • Component/s: tools
    • Labels:
      None
    • Hadoop Flags:
      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.1.patch
          12 kB
          Peter Slawski
        2. PIG-4496-2.patch
          12 kB
          Daniel Dai

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: