You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Chu Cheng Li (Jira)" <ji...@apache.org> on 2025/11/26 07:58:00 UTC
[jira] [Updated] (HDDS-13809) Close OmMetadataManagerImpl.createCheckpointMetadataManager properly
[ https://issues.apache.org/jira/browse/HDDS-13809?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chu Cheng Li updated HDDS-13809:
--------------------------------
Fix Version/s: 2.2.0
Resolution: Fixed
Status: Resolved (was: Patch Available)
> Close OmMetadataManagerImpl.createCheckpointMetadataManager properly
> --------------------------------------------------------------------
>
> Key: HDDS-13809
> URL: https://issues.apache.org/jira/browse/HDDS-13809
> Project: Apache Ozone
> Issue Type: Sub-task
> Reporter: Wei-Chiu Chuang
> Assignee: Huang Guan Hao
> Priority: Trivial
> Labels: pull-request-available
> Fix For: 2.2.0
>
>
> OmMetadataManagerImpl.createCheckpointMetadataManager initializes a
> OmMetadataManagerImpl object, which is a Closeable subclass.
>
> The objects are not closed with try..with statement. They doesn't leak resources because they call stop() which is equivalent to the close() method.
>
> Still, it would make compiler happier if we do close instead of stop(). This is nice to have. Not a must do.
--
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