hevinhsu opened a new pull request, #8936:
URL: https://github.com/apache/ozone/pull/8936
## What changes were proposed in this pull request?
Speed up ```TestFailureHandlingByClient``` by using a shared
```MiniOzoneCluster```, reducing execution time by about 30%.
Please describe your PR in detail:
* Share a single ```MiniOzoneCluster``` instance across all test cases to
eliminate repeated cluster creation.
* Add a clean up method to make cluster reusable:
* Restart any stopped DNs.
* Run ```TestFailureHandlingByClient#testBlockWritesWithDnFailures```
first to avoid container cleanup, since only this test case needs to verify the
container block count.
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-11321
## How was this patch tested?
forked CI: https://github.com/hevinhsu/ozone/actions/runs/16899955413
Executed locally with:
```bash
mvn clean test -Dtest=TestFailureHandlingByClient
-Dsurefile.reportFormat='plain'
```
* Before
```
-------------------------------------------------------------------------------
Test set: org.apache.hadoop.ozone.client.rpc.TestFailureHandlingByClient
-------------------------------------------------------------------------------
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 326.2 s --
in org.apache.hadoop.ozone.client.rpc.TestFailureHandlingByClient
```
* After
```
-------------------------------------------------------------------------------
Test set: org.apache.hadoop.ozone.client.rpc.TestFailureHandlingByClient
-------------------------------------------------------------------------------
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 231.5 s --
in org.apache.hadoop.ozone.client.rpc.TestFailureHandlingByClient
```
--
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]