hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Clampffer (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-10937) libhdfs++: hdfsRead return -1 at eof
Date Fri, 26 Oct 2018 13:18:00 GMT

     [ https://issues.apache.org/jira/browse/HDFS-10937?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

James Clampffer updated HDFS-10937:
-----------------------------------
    Parent Issue: HDFS-14032  (was: HDFS-8707)

> 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
>          Components: hdfs-client
>            Reporter: Bob Hansen
>            Priority: Major
>
> 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
(v7.6.3#76005)

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


Mime
View raw message