You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "James Clampffer (JIRA)" <ji...@apache.org> on 2017/07/05 21:50:00 UTC

[jira] [Commented] (HDFS-12013) libhdfs++: read with offset at EOF should return 0 bytes instead of error

    [ https://issues.apache.org/jira/browse/HDFS-12013?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16075485#comment-16075485 ] 

James Clampffer commented on HDFS-12013:
----------------------------------------

Nice catch, looks good to me. +1 pending a passing CI run

> 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
(v6.4.14#64029)

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