You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Christian Kunz (JIRA)" <ji...@apache.org> on 2008/11/11 02:19:44 UTC
[jira] Commented: (HADOOP-4629) libhdfs sets read return code to 0
when hadoop returns < 0
[ 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.