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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to