Skip to content

crimson/os/seastore/cache: TRIM_DIRTY/CLEANER_* transactions won't invalidate other transactions anymore - #66488

Merged
xxhdx1985126 merged 15 commits into
ceph:mainfrom
xxhdx1985126:wip-seastore-background-trans-cc-opt2
Feb 4, 2026
Merged

xxhdx1985126 merged 15 commits into
ceph:mainfrom
xxhdx1985126:wip-seastore-background-trans-cc-opt2

Conversation

@xxhdx1985126

@xxhdx1985126 xxhdx1985126 commented Dec 3, 2025 •

Copy link
Copy Markdown
Member

Fixes: https://tracker.ceph.com/issues/73070
Signed-off-by: Xuehan Xu [email protected]

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.

@xxhdx1985126

Copy link
Copy Markdown
Member Author

@athanatos Hi, sam, I've eventually fallen back to the client transactions blocking on background transactions approach. Because even if we can deal with the undetermined paddr issue in cases of deltas, we still have to deal with the undetermined paddr issue in cases of lba/backref node retiring, which seems may not be able to be resolved without forcing the client transactions to wait for the rewriting transactions.

Please take a look again, thanks:-)

@xxhdx1985126
xxhdx1985126 force-pushed the wip-seastore-background-trans-cc-opt2 branch from 6581006 to 1810655 Compare December 3, 2025 06:33
@Matan-B Matan-B added this to Crimson Dec 3, 2025
@Matan-B Matan-B moved this to Awaits review in Crimson Dec 3, 2025
@xxhdx1985126
xxhdx1985126 force-pushed the wip-seastore-background-trans-cc-opt2 branch from 1810655 to e76cecb Compare December 5, 2025 03:07
@athanatos

Copy link
Copy Markdown
Contributor

Started working through it, should finish on Monday.

@athanatos athanatos 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

@Matan-B Matan-B moved this from Awaits review to Needs QA in Crimson Dec 9, 2025
@github-actions

github-actions Bot commented Dec 9, 2025

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@xxhdx1985126
xxhdx1985126 force-pushed the wip-seastore-background-trans-cc-opt2 branch from 321ab19 to 65ea8c9 Compare December 17, 2025 06:45
@xxhdx1985126

xxhdx1985126 commented Dec 17, 2025 •

Copy link
Copy Markdown
Member Author

@athanatos @Matan-B Hi, I've just pushed my fixup commits, which should be sufficient for this PR to pass the teuthology tests although I haven't been able to rerun them as Sepia is not available to me now. Please take another round of review, thanks:-)
crimson/os/seastore/extent_pinboard: reset 2q_state when removing
fixup! crimson/os/seastore/btree_types: BtreeCursors don't hold local…
fixup! crimson/os/seastore/cache: rewrite transactions don't invalida…
fixup! crimson/os/seastore/cache: add facilities to synchronize data …

@xxhdx1985126
xxhdx1985126 force-pushed the wip-seastore-background-trans-cc-opt2 branch from 65ea8c9 to 93ed314 Compare December 17, 2025 07:52
@xxhdx1985126

Copy link
Copy Markdown
Member Author

Rebased

@Matan-B

Matan-B commented Dec 17, 2025

Copy link
Copy Markdown
Contributor

@athanatos @Matan-B Hi, I've just pushed my fixup commits, which should be sufficient for this PR to pass the teuthology tests although I haven't been able to rerun them as Sepia is not available to me now. Please take another round of review, thanks:-) crimson/os/seastore/extent_pinboard: reset 2q_state when removing fixup! crimson/os/seastore/btree_types: BtreeCursors don't hold local… fixup! crimson/os/seastore/cache: rewrite transactions don't invalida… fixup! crimson/os/seastore/cache: add facilities to synchronize data …

W'll try to test this as soon as the infra lab goes back up. Updates are shared in the dev list [email protected] or #sepia channel

@xxhdx1985126

Copy link
Copy Markdown
Member Author

jenkins test make check

@xxhdx1985126

Copy link
Copy Markdown
Member Author

https://pulpito.ceph.com/xuxuehan-2026-01-25_02:16:40-crimson-rados-wip-seastore-background-trans-cc-opt2-distro-default-trial/

All tests are good, accept the one recorded in: https://tracker.ceph.com/issues/74557, which doesn't seem to be related to this PR.

@athanatos @Matan-B please take a final look at this PR, thanks:-) I'll squash the fixup commits after that, thanks:-)

@Matan-B Matan-B moved this from Needs QA to Tested in Crimson Jan 25, 2026
@Matan-B

Matan-B commented Jan 25, 2026

Copy link
Copy Markdown
Contributor

TransactionManager to retrieve lba mappings' paddrs.

Signed-off-by: Xuehan Xu <[email protected]>
lba/backref values

Since lba mapping values might change during the executions of
client transactions once we allow background transactions to be
submitted without invalidating client ones, we want to avoid other
components using lba/backref mappings from keep local copies to prevent
petential problem

Signed-off-by: Xuehan Xu <[email protected]>
generated by backref retrieval transactions and used by reclaim
transactions

Signed-off-by: Xuehan Xu <[email protected]>
These are the transactions that only rewrite extents and mutation lba
nodes, e.g. TRIM_DIRTY and CLEANER transactions

Signed-off-by: Xuehan Xu <[email protected]>
between rewriting trasactions and others when committing

Signed-off-by: Xuehan Xu <[email protected]>
extents' transaction views when committing or invalidating the
transaction

Signed-off-by: Xuehan Xu <[email protected]>
CachedExtent::prior_poffset, remove invalid asserts

Signed-off-by: Xuehan Xu <[email protected]>
they conflict with rewriting transactions until the rewriting
transactions finishes

Signed-off-by: Xuehan Xu <[email protected]>
@xxhdx1985126
xxhdx1985126 force-pushed the wip-seastore-background-trans-cc-opt2 branch from 93ed314 to ee2d2fb Compare January 26, 2026 03:07
@xxhdx1985126

Copy link
Copy Markdown
Member Author

@Matan-B

Matan-B commented Jan 26, 2026

Copy link
Copy Markdown
Contributor

jenkins test make check

@Matan-B Matan-B added the TESTED label Jan 26, 2026
@xxhdx1985126

Copy link
Copy Markdown
Member Author

jenkins test api

@xxhdx1985126

Copy link
Copy Markdown
Member Author

The following tests FAILED:
32 - run-rbd-unit-tests-61.sh (Timeout)

@xxhdx1985126

Copy link
Copy Markdown
Member Author

jenkins test make check

@xxhdx1985126
xxhdx1985126 merged commit 566f177 into ceph:main Feb 4, 2026
@github-actions

github-actions Bot commented Feb 4, 2026

Copy link
Copy Markdown

This is an automated message by src/script/redmine-upkeep.py.

I found one or more Fixes: tags in the commit messages in

git log 566f177dfb93bf23789d867e3c1ddf67d1cbef65^..566f177dfb93bf23789d867e3c1ddf67d1cbef65

The referenced tickets are:

Those tickets do not reference this merged Pull Request. If this Pull Request merge resolves any of those tickets, please update the "Pull Request ID" field on each ticket. A future run of this script will appropriately update them.

Update Log: https://github.com/ceph/ceph/actions/runs/21659159408

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.

3 participants