hevinhsu opened a new pull request, #9721:
URL: https://github.com/apache/ozone/pull/9721

   ## What changes were proposed in this pull request?
   Speed up `TestSnapshotBackgroundServices` by reusing a shared 
`MiniOzoneHACluster` instead of creating a new cluster for each test case.
   
   ## Please describe your PR in detail:
   * Refactor `TestSnapshotBackgroundServices` to use a shared 
`MiniOzoneHACluster` to reduce repeated cluster initialization cost.
   * Introduce a small test-only API to apply updated configurations by 
restarting OM, allowing configuration changes without recreating the entire 
cluster.
   
   ## What is the link to the Apache JIRA?
   https://issues.apache.org/jira/browse/HDDS-10306
   
   ## How was this patch tested?
   https://github.com/hevinhsu/ozone/actions/runs/21741639312
   
   
   Additionally, the following test was executed locally to verify the 
improvement:
   ```
   mvn clean test -Dtest=TestSnapshotBackgroundServices 
-Dsurefire.skipAfterFailureCount=1 -pl hadoop-ozone/integration-test -am 
   ```
   
   before:
   ```
   [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 240.2 
s -- in org.apache.hadoop.ozone.om.snapshot.TestSnapshotBackgroundServices
   ```
   
   after:
   ```
   [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 155.6 
s -- in org.apache.hadoop.ozone.om.snapshot.TestSnapshotBackgroundServices
   ```
   


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

Reply via email to