You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Chun-Hung Tseng (Jira)" <ji...@apache.org> on 2026/06/07 10:11:00 UTC

[jira] [Assigned] (HDDS-15494) Refactor OzoneOutputStream usage to utilize try-with-resources

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

Chun-Hung Tseng reassigned HDDS-15494:
--------------------------------------

    Assignee: Chun-Hung Tseng

> Refactor OzoneOutputStream usage to utilize try-with-resources
> --------------------------------------------------------------
>
>                 Key: HDDS-15494
>                 URL: https://issues.apache.org/jira/browse/HDDS-15494
>             Project: Apache Ozone
>          Issue Type: Improvement
>            Reporter: Chung-En Lee
>            Assignee: Chun-Hung Tseng
>            Priority: Minor
>
> Several `OzoneOutputStream` instances, such as those in `TestContainerStateMachine`, `TestContainerStateMachineFailures`, `TestBlockDeletion`, and `TestValidateBCSIDOnRestart`and other relevant test classes, are not currently handled by using the *try-with-resources* statement. It would be more elegant to handle these resources via *try-with-resources* rather than closing them manually.



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