You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Wei-Chiu Chuang (Jira)" <ji...@apache.org> on 2026/01/07 19:34:00 UTC
[jira] [Created] (HDDS-14370) RandomAccessFileChannel to implement Closeable
Wei-Chiu Chuang created HDDS-14370:
--------------------------------------
Summary: RandomAccessFileChannel to implement Closeable
Key: HDDS-14370
URL: https://issues.apache.org/jira/browse/HDDS-14370
Project: Apache Ozone
Issue Type: Task
Reporter: Wei-Chiu Chuang
https://github.com/apache/ozone/blob/33544def1cc1fdf02d934d0e3139f6f955271482/hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/utils/io/RandomAccessFileChannel.java#L89
RandomAccessFileChannel has a close() method to release the FileChannel. However it doesn't implement Closeable interface so a user may misuse and leak the resource. See: https://github.com/apache/ozone/pull/9535#discussion_r2666504704
[~rich7420]
--
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