Skip to content

Crimson/osd/snap-mapper: flush pending writes on pg interval change - #68796

Merged
ronen-fr merged 1 commit into
ceph:mainfrom
ronen-fr:wip-rf-snapreset-crimson
May 20, 2026
Merged

ronen-fr merged 1 commit into
ceph:mainfrom
ronen-fr:wip-rf-snapreset-crimson

Conversation

@ronen-fr

@ronen-fr ronen-fr commented May 7, 2026 •

Copy link
Copy Markdown
Contributor

When a PG interval changes, the snap-mapper's MapCacher backend is
reset to clear any stale state. This change adds a flush-and-reset
method that first flushes any pending writes in the MapCacher into the
objectstore, then resets the backend.

And that is why we are seeing multiple instances of snap-mapper inconsistencies
(fixed by #68707)

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

Note: the PR changes the implementation introduced in #57125.

@ronen-fr

ronen-fr commented May 7, 2026

Copy link
Copy Markdown
Contributor Author

@xxhdx1985126 - can you take a look at this PR? I am confident that I am not re-introducing the bug you had solved with the original PR, but will appreciate a second opinion. Thanks

@ronen-fr
ronen-fr force-pushed the wip-rf-snapreset-crimson branch from 763c027 to 06005c8 Compare May 7, 2026 11:47

@xxhdx1985126 xxhdx1985126 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@Matan-B Matan-B added this to Crimson May 10, 2026
@Matan-B Matan-B moved this to Needs QA in Crimson May 10, 2026
When a PG interval changes, the snap-mapper's MapCacher backend is
reset to clear any stale state. This change adds a flush-and-reset
method that first flushes any pending writes in the MapCacher into the
objectstore, then resets the backend.

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

Signed-off-by: Ronen Friedman <[email protected]>
@ronen-fr
ronen-fr force-pushed the wip-rf-snapreset-crimson branch from 06005c8 to dee19fe Compare May 12, 2026 15:51
@perezjosibm

perezjosibm commented May 13, 2026 •

Copy link
Copy Markdown
Contributor
teuthology-suite -s crimson-rados -p 101 --force-priority -c wip-perezjos-crimson-only-13-05-2026-PR68796  -f debug  --filter-out rgw --suite-branch main --suite-repo https://github.com/ceph/ceph.git
2026-05-14 14:30:39,447.447 INFO:teuthology.suite.run:Test results viewable at

https://pulpito-ng.ceph.com/jjperez-2026-05-14_14:24:14-crimson-rados-wip-perezjos-crimson-only-13-05-2026-PR68796-distro-debug-trial/

@ronen-fr

Copy link
Copy Markdown
Contributor Author

Merging based on Jose's and my runs.

@ronen-fr
ronen-fr merged commit da25049 into ceph:main May 20, 2026
8 of 9 checks passed
@ronen-fr ronen-fr moved this from Tested to Merged (Main) in Crimson May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Merged (Pre Umbrella cutoff)

Development

Successfully merging this pull request may close these issues.

5 participants