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:19:44 GMT

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

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

-1
I am not in favor of this patch. I believe the original code tried to mimic libc behavior
returning 0 bytes at EOF. This patch will probably break a lot of existing clients.

> 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