Skip to content

qa: Fix the race in test_mgr_snapshot_mirror_status_cache_disabled_syncing - #73042

Merged
kotreshhr merged 1 commit into
ceph:mainfrom
kotreshhr:mirror-qa-1
Nov 23, 2026
Merged

kotreshhr merged 1 commit into
ceph:mainfrom
kotreshhr:mirror-qa-1

Conversation

@kotreshhr

@kotreshhr kotreshhr commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

The test needs mgr and asok to agree while a directory is still syncing. Asok leads omap by about a tick, and the scope check takes several mgr status reads against one asok snapshot. The ~2 GiB sync can finish in a few seconds, so early attempts hit stale omap or a mid-check idle/syncing mismatch; once sync completes, retries keep failing on expected_state=syncing.

Increasing the number of files/file size only widens the window and still races on fast hosts; freezing the mirror after omap shows syncing makes the comparison deterministic. If that window is already missed, dirty the tree and start a few more snaps.

Fixes: https://tracker.ceph.com/issues/80590

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@kotreshhr
kotreshhr requested review from a team, dparmar18, karthik-us1 and vshankar October 24, 2026 02:49
@github-actions github-actions Bot added cephfs Ceph File System tests labels Oct 24, 2026
@kotreshhr

Copy link
Copy Markdown
Contributor Author

This PR has been added to main integration testing by khiremat started 2026-10-08-19:27.

@kotreshhr

Copy link
Copy Markdown
Contributor Author

Comment thread qa/tasks/cephfs/test_mirroring.py Resolved
Comment thread qa/tasks/cephfs/test_mirroring.py Resolved
@kotreshhr
kotreshhr force-pushed the mirror-qa-1 branch 2 times, most recently from 9ba6a3c to a9eab3a Compare November 2, 2026 12:22
@kotreshhr

Copy link
Copy Markdown
Contributor Author

This PR has been added to main integration testing by khiremat started 2026-11-01-06:48.

Comment thread qa/tasks/cephfs/test_mirroring.py Resolved
…ncing

The test needs mgr and asok to agree while a directory is still
syncing. Asok leads omap by about a tick, and the scope check takes
several mgr status reads against one asok snapshot. The ~2 GiB sync
can finish in a few seconds, so early attempts hit stale omap or a
mid-check idle/syncing mismatch; once sync completes, retries keep
failing on expected_state=syncing.

Increasing the number of files/file size only widens the window and
still races on fast hosts; freezing the mirror after omap shows
syncing makes the comparison deterministic. If that window is
already missed, dirty the tree and start a few more snaps.

Fixes: https://tracker.ceph.com/issues/80590
Signed-off-by: Kotresh HR <[email protected]>

@karthik-us1 karthik-us1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kotreshhr kotreshhr self-assigned this Nov 14, 2026
@kotreshhr

Copy link
Copy Markdown
Contributor Author

This PR has been added to main integration testing by khiremat started 2026-11-18-12:43.

@kotreshhr

Copy link
Copy Markdown
Contributor Author

@kotreshhr
kotreshhr merged commit 1553c31 into ceph:main Nov 23, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants