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-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-dev-h...@hadoop.apache.org