[ 
https://issues.apache.org/jira/browse/PIG-2853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vitalii Tymchyshyn updated PIG-2853:
------------------------------------

    Attachment: diff.diff

The diff from pull request
                
> PiggyBank XMLLoaderBufferedPositionedInputStream incorrectly inherits from 
> BufferedPositionedInputStream and so uses unbuffered io reading byte-by-byte
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: PIG-2853
>                 URL: https://issues.apache.org/jira/browse/PIG-2853
>             Project: Pig
>          Issue Type: Bug
>          Components: piggybank
>    Affects Versions: 0.10.0
>            Reporter: Vitalii Tymchyshyn
>         Attachments: diff.diff
>
>
> XMLLoaderBufferedPositionedInputStream caches passed InputStream and then 
> uses it to read. At the same time the stream is bufferent in super 
> construcor. So cached version is unbuffered.
> Also using cached version makes getPosition() call return invalid values and 
> forces XMLLoaderBufferedPositionedInputStream maintain it's own counter.
> I did add some fixes here: https://github.com/apache/pig/pull/5/files 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to