Description
HDFS-10277 showed that HDFS was return -1 on read(buf[], 0, 0) when there was no data left in the stream; Java IO says
If len is zero, then no bytes are read and 0 is returned; otherwise, there is an attempt to read at least one byte.
Review the implementations of {{IOStream.(buffer, offset, bytes)} and, where necessary and considered safe, add a fast exit if the length is 0.
Attachments
Attachments
Issue Links
- breaks
-
HADOOP-13798 TestHadoopArchives times out
- Resolved
- is depended upon by
-
HADOOP-11694 Über-jira: S3a phase II: robustness, scale and performance
- Resolved
- relates to
-
HDFS-10277 PositionedReadable test testReadFullyZeroByteFile failing in HDFS
- Resolved
-
HADOOP-12994 Specify PositionedReadable, add contract tests, fix problems
- Resolved