hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colin Patrick McCabe (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-6071) BlockReaderLocal doesn't return -1 on EOF when doing a zero-length read on a short file
Date Thu, 06 Mar 2014 23:22:42 GMT
Colin Patrick McCabe created HDFS-6071:
------------------------------------------

             Summary: 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


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