HDDS-15828. Fix flaky TestDirectoryDeletingServiceWithFSO snapshot cleanup. - #10726
jojochuang wants to merge 3 commits into
Conversation
…eanup. Wait for SnapshotDeletingService to purge deleted snapshots before snapshot tests return on the shared mini-cluster, so later tests do not chain off stale global snapshot entries. Co-authored-by: Cursor <cursoragent@cursor.com> Change-Id: I57ec596cd5870b68f21ff9d9a89850ea9832f56e
There was a problem hiding this comment.
Pull request overview
This PR targets integration-test flakiness in TestDirectoryDeletingServiceWithFSO by ensuring snapshot deletions are fully purged from OM metadata before tests return, avoiding cross-test interference on the shared mini-cluster.
Changes:
- Replace SnapshotDeletingService shutdown/restart logic with suspend/resume and a dedicated purge-wait helper.
- Add a
waitForSnapshotsPurged(...)helper that drives SnapshotDeletingService and waits forsnapshotInfoTableto reach an expected row count. - Ensure snapshot purge is awaited after snapshot deletion in another test to avoid leaving global snapshot entries behind.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
This PR has been marked as stale due to 21 days of inactivity. Please comment or remove the stale label to keep it open. Otherwise, it will be automatically closed in 7 days. |
|
Thank you for your contribution. This PR is being closed due to inactivity. Please contact a maintainer if you would like to reopen it. |
|
Hi @SaketaChalamchala @jojochuang I've addressed all the review comments in a follow-up PR: #11212 Changes made on top of this patch:
Flaky Test run after the fix : https://github.com/arunsarin85/ozone/actions/runs/33992835360 |
Apply the accepted follow-up changes from apache#11212 to apache#10726. Move snapshot purge and service recovery to teardown and remove redundant purge waits, including the checkstyle-failing lambda. Source: d7a2702 (retaining the TestDataUtil name used by this branch). Original patch attribution: Generated-by: Cursor <cursoragent@cursor.com>
|
Superceded by #11212 |
What changes were proposed in this pull request?
Previously failed in https://github.com/apache/ozone/actions/runs/29127546564/job/86477855080
Wait for SnapshotDeletingService to purge deleted snapshots before snapshot tests return on the shared mini-cluster, so later tests do not chain off stale global snapshot entries.
What is the link to the Apache JIRA
HDDS-15828. Fix flaky TestDirectoryDeletingServiceWithFSO snapshot cleanup.
How was this patch tested?
flaky-test-check 10x10 all passed: https://github.com/jojochuang/ozone/actions/runs/29134805647