hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Kunz (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-4629) libhdfs sets read return code to 0 when hadoop returns < 0
Date Tue, 11 Nov 2008 01:39:44 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-4629?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12646438#action_12646438
] 

Christian Kunz commented on HADOOP-4629:
----------------------------------------

Java API for read(byte[] b) says:

If no byte is available because the stream is at the end of the file, the value -1 is returned;
otherwise, *at least* one byte is read and stored into b. 

What would be the situation where 0 bytes is returned without being at EOF (and no exception
thrown)?

> libhdfs sets read return code to 0 when hadoop returns < 0 
> -----------------------------------------------------------
>
>                 Key: HADOOP-4629
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4629
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: libhdfs
>    Affects Versions: 0.19.0, 0.20.0
>            Reporter: Pete Wyckoff
>            Assignee: Pete Wyckoff
>             Fix For: 0.20.0
>
>         Attachments: HADOOP-4629.txt
>
>
> libhdfs is changing the return code to 0 whenever hadoop returns < 0 on a read.  This
means EOF cannot be determined correctly since it should have a return code of -1.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message