You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Colin Patrick McCabe (JIRA)" <ji...@apache.org> on 2012/07/06 20:54:35 UTC
[jira] [Commented] (HDFS-470) libhdfs issue warning if
FSDataInputStream returns invalid return value
[ https://issues.apache.org/jira/browse/HDFS-470?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13408220#comment-13408220 ]
Colin Patrick McCabe commented on HDFS-470:
-------------------------------------------
POSIX does have a way of conveying "failed to read any bytes, but we're not at EOF." It's called EINTR. We should return this errno code when Java returns 0 from a read (as opposed to -1, which means EOF in Java.)
> libhdfs issue warning if FSDataInputStream returns invalid return value
> -----------------------------------------------------------------------
>
> Key: HDFS-470
> URL: https://issues.apache.org/jira/browse/HDFS-470
> Project: Hadoop HDFS
> Issue Type: Improvement
> Reporter: Pete Wyckoff
> Assignee: Colin Patrick McCabe
>
> libhdfs changes Java read semantics to posix semantics. As such, if Hadoop ever returns 0 bytes read, libhdfs should return -1 and set errno = EINTER.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira