hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bob Hansen (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-10937) libhdfs++: hdfsRead return -1 at eof
Date Fri, 30 Sep 2016 17:02:20 GMT
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


Mime
View raw message