You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Jeremy Karn (JIRA)" <ji...@apache.org> on 2015/05/05 02:34:11 UTC

[jira] [Commented] (PIG-4496) Fix CBZip2InputStream to close underlying stream

    [ https://issues.apache.org/jira/browse/PIG-4496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14527638#comment-14527638 ] 

Jeremy Karn commented on PIG-4496:
----------------------------------

I just came across this bug and this patch seems to fix it for me.  Thanks!

> Fix CBZip2InputStream to close underlying stream
> ------------------------------------------------
>
>                 Key: PIG-4496
>                 URL: https://issues.apache.org/jira/browse/PIG-4496
>             Project: Pig
>          Issue Type: Bug
>          Components: tools
>    Affects Versions: 0.12.0, 0.15.0
>            Reporter: Peter Slawski
>             Fix For: 0.15.0
>
>         Attachments: PIG-4496.1.patch
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)