You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Bob Hansen (JIRA)" <ji...@apache.org> on 2016/09/30 17:02:20 UTC

[jira] [Created] (HDFS-10937) libhdfs++: hdfsRead return -1 at eof

Bob Hansen created HDFS-10937:
---------------------------------

             Summary: libhdfs++: hdfsRead return -1 at eof
                 Key: HDFS-10937
                 URL: https://issues.apache.org/jira/browse/HDFS-10937
             Project: Hadoop HDFS
          Issue Type: Sub-task
            Reporter: Bob Hansen


The libhdfs++ implementation of hdfsRead appears to be out-of-spec.  The header says it will return 0 at eof, but the current implementation returns -1 with an errno of 261 (invalid offset).

The basic posix-y read loop of
while ( (bytesRead = hdsfRead(...)) != 0) {...}
won't work with with libhdfs++'s hdfsRead method.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org