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

Surendra Singh Lilhore updated HADOOP-15869:
--------------------------------------------
       Resolution: Fixed
    Fix Version/s: 3.2.1
                   3.1.2
                   3.3.0
           Status: Resolved  (was: Patch Available)

Committed to trunk, branch-3.2, branch-3.1

> BlockDecompressorStream#decompress should not return -1 in case of 
> IOException.
> -------------------------------------------------------------------------------
>
>                 Key: HADOOP-15869
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15869
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 2.7.2
>            Reporter: Surendra Singh Lilhore
>            Assignee: Surendra Singh Lilhore
>            Priority: Major
>             Fix For: 3.3.0, 3.1.2, 3.2.1
>
>         Attachments: HADOOP-15869.01.patch
>
>
> BlockDecompressorStream#decompress() return -1 in case of 
> BlockMissingException. Application which is using BlockDecompressorStream may 
> think file is empty and proceed further. But actually read operation should 
> fail.
> {code:java}
> // Get original data size
> try {
>    originalBlockSize = rawReadInt();
> } catch (IOException ioe) {
>    return -1;
> }{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to