You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Huang Guan Hao (Jira)" <ji...@apache.org> on 2025/10/18 07:41:00 UTC

[jira] [Assigned] (HDDS-13809) Close OmMetadataManagerImpl.createCheckpointMetadataManager properly

     [ https://issues.apache.org/jira/browse/HDDS-13809?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Huang Guan Hao reassigned HDDS-13809:
-------------------------------------

    Assignee: Huang Guan Hao

> 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
>
> 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