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

[jira] [Updated] (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 ]

ASF GitHub Bot updated HDDS-15494:
----------------------------------
    Labels: pull-request-available  (was: )

> 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
>              Labels: pull-request-available
>
> 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