You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Chung-En Lee (Jira)" <ji...@apache.org> on 2026/07/21 09:07:00 UTC

[jira] [Created] (HDDS-15920) Fix ByteBuffer positioned read behavior at EOF in OzoneFSInputStream

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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org