henrybear327 opened a new pull request, #10458: URL: https://github.com/apache/ozone/pull/10458
## What changes were proposed in this pull request? The manual `key.close()` or `out.close()` calls at the end of test cases are replaced with try-with-resources blocks. This ensures that: - Output streams are safely and automatically closed even when test assertions fail or unexpected exceptions are thrown midway through execution. - Potential connection, pipeline, or file descriptor leaks between test runs are eliminated. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-15494 ## How was this patch tested? ```bash mvn clean test -pl hadoop-ozone/integration-test -Dtest=TestContainerStateMachine,TestContainerStateMachineFailures,TestBlockDeletion,TestValidateBCSIDOnRestart ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
