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] [Commented] (HDFS-12013) libhdfs++: read with offset at EOF should return 0 bytes instead of error
Date Wed, 05 Jul 2017 21:50:00 GMT

    [ 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


Mime
View raw message