[
https://issues.apache.org/jira/browse/HDFS-12013?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16410468#comment-16410468
]
Hudson commented on HDFS-12013:
-------------------------------
SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #13869 (See
[https://builds.apache.org/job/Hadoop-trunk-Commit/13869/])
HDFS-12013: libhdfs++: read with offset at EOF should return 0 bytes
(james.clampffer: rev 3c743b475e6ec431a5849ebd467b077e41e89987)
* (edit)
hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/lib/fs/filehandle.cc
> libhdfs++: read with offset at EOF should return 0 bytes instead of error
> -------------------------------------------------------------------------
>
> Key: HDFS-12013
> URL: https://issues.apache.org/jira/browse/HDFS-12013
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: hdfs-client
> Reporter: Xiaowei Zhu
> Assignee: Xiaowei Zhu
> Priority: Critical
> Attachments: HDFS-12013.HDFS-8707.000.patch
>
>
> The current behavior is when you read from offset == file_length, it will
> throw error:
> "AsyncPreadSome: trying to begin a read past the EOF"
> But read with offset at EOF should just return 0 bytes. The above error
> should only be thrown when offset > file_length.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]