hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pete Wyckoff (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:25:44 GMT

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

Pete Wyckoff commented on HADOOP-4629:
--------------------------------------

a valid return for hadoop read is 0 bytes though - that does not mean EOF.  How does the caller
differentiate between 0 bytes read and EOF in this case? 

> 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