[
https://issues.apache.org/jira/browse/HDDS-15920?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tsz-wo Sze resolved HDDS-15920.
-------------------------------
Fix Version/s: 2.3.0
Resolution: Fixed
The pull request is now merged. Thanks, [~chungen]!
> 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
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.3.0
>
>
> 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]