Chung-En Lee created HDDS-15920:
-----------------------------------

             Summary: Fix ByteBuffer positioned read behavior at EOF in 
OzoneFSInputStream
                 Key: HDDS-15920
                 URL: https://issues.apache.org/jira/browse/HDDS-15920
             Project: Apache Ozone
          Issue Type: Sub-task
            Reporter: Chung-En Lee
            Assignee: Chung-En Lee


When performing positioned reads at or past the End-Of-File (EOF) using 
OzoneFSInputStream#read(long, ByteBuffer), the stream does not correctly return 
-1 when no bytes can be read. This violates the standard Hadoop 
ByteBufferPositionedReadable contract for streams, where a read at EOF should 
return -1 to indicate that no more data is available.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to