You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Vitalii Tymchyshyn (JIRA)" <ji...@apache.org> on 2012/09/05 09:25:07 UTC

[jira] [Updated] (PIG-2853) PiggyBank XMLLoaderBufferedPositionedInputStream incorrectly inherits from BufferedPositionedInputStream and so uses unbuffered io reading byte-by-byte

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

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

    Affects Version/s: 0.9.1
    
> 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.9.1, 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
For more information on JIRA, see: http://www.atlassian.com/software/jira