Description
E.g, DFSInputStream and S3AInputStream return the size of the remaining available bytes, but the javadoc of "available" says it should "Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking by the next invocation of a method for this input stream."
I understand that some applications may rely on the current behavior. It would be great that there is an interface to document how "available" should be implemented.
Attachments
Issue Links
- relates to
-
HADOOP-15870 S3AInputStream.remainingInFile should use nextReadPos
- Reopened