Description
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.
Attachments
Attachments
Issue Links
- is related to
-
HDFS-5762 BlockReaderLocal doesn't return -1 on EOF when doing zero-length reads
- Closed