echonesis opened a new pull request, #10680: URL: https://github.com/apache/ozone/pull/10680
## What changes were proposed in this pull request? This patch speeds up `TestOMDbCheckpointServletInodeBasedXfer` by reusing a single `MiniOzoneCluster` for the test class instead of starting and stopping a cluster for each test case. The test class now initializes the cluster in `@BeforeAll` and shuts it down in `@AfterAll`. Test cases that depend on mutable OM state were adjusted to use unique volume and bucket names, restore modified configuration, and resume paused snapshot services after each test. The patch also tightens checkpoint and snapshot purge coordination: - `OMDBCheckpointServletInodeBasedXfer` now holds the snapshot cache lock and snapshot local data lock while collecting snapshot-related data for checkpoint transfer. - `OMSnapshotPurgeResponse` now updates snapshot local data while holding the snapshot local data lock. - The follower consistency test was updated to verify that snapshot purge waits while checkpoint transfer holds the relevant lock. - Some timing-sensitive tests were changed to use wait conditions instead of fixed sleeps. This avoids repeated cluster startup cost while preserving coverage for snapshot checkpoint transfer, snapshot purge coordination, and related service locking behavior. Generated-by: OpenAI Codex (GPT-5) ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-15523 ## How was this patch tested? Tested with: ``` mvn clean test -pl :ozone-integration-test -am \ -Dtest=TestOMDbCheckpointServletInodeBasedXfer \ -DskipShade -DskipRecon -DskipDocs \ -Dmaven.compiler.useIncrementalCompilation=false REPORT_DIR=hadoop-ozone/integration-test/target/surefire-reports TEST_CLASS=org.apache.hadoop.ozone.om.TestOMDbCheckpointServletInodeBasedXfer tail -n 1 "$REPORT_DIR/$TEST_CLASS.txt" rg '<testcase ' "$REPORT_DIR/TEST-$TEST_CLASS.xml" \ | sed -E 's/.*name="([^"]+)".*classname="([^"]+)".*time="([^"]+)".*/\2.\1 -- Time elapsed: \3 s/' ``` <img width="1162" height="238" alt="截圖 2026-07-07 凌晨1 51 36" src="https://github.com/user-attachments/assets/a6294d89-7b95-4f07-939d-17cb8d96b801" /> GitHub Actions CI: https://github.com/echonesis/ozone/actions/runs/28811897352 <img width="945" height="77" alt="截圖 2026-07-07 上午8 09 27" src="https://github.com/user-attachments/assets/ce25b6ee-d815-4d19-8633-6ef0aff85532" /> -- 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]
