hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-6071) BlockReaderLocal doesn't return -1 on EOF when doing a zero-length read on a short file
Date Mon, 10 Mar 2014 11:33:43 GMT

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

Hudson commented on HDFS-6071:
------------------------------

FAILURE: Integrated in Hadoop-Hdfs-trunk #1697 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk/1697/])
HDFS-6071. BlockReaderLocal does not return -1 on EOF when doing a zero-length read on a short
file. (cmccabe) (cmccabe: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1575797)
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/BlockReaderLocal.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/DFSTestUtil.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestRead.java


> BlockReaderLocal doesn't return -1 on EOF when doing a zero-length read on a short file
> ---------------------------------------------------------------------------------------
>
>                 Key: HDFS-6071
>                 URL: https://issues.apache.org/jira/browse/HDFS-6071
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 2.4.0
>            Reporter: Colin Patrick McCabe
>            Assignee: Colin Patrick McCabe
>             Fix For: 2.4.0
>
>         Attachments: HDFS-6071.001.patch, HDFS-6071.002.patch
>
>
> BlockReaderLocal doesn't return -1 on EOF when doing a zero-length read on a short file.
 Specifically, if the file is shorter than the readahead buffer, or if the position is nearer
to the end than the length of the readahead buffer, this may happen.  This is mainly a concern
because libhdfs relies on this to determine whether it should use direct reads.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message