Skip to content

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

Merged
Matan-B merged 19 commits into
ceph:mainfrom
xxhdx1985126:wip-seastore-background-trans-cc-opt-new
Mar 9, 2026
Merged

Matan-B merged 19 commits into
ceph:mainfrom
xxhdx1985126:wip-seastore-background-trans-cc-opt-new

Conversation

@xxhdx1985126

Copy link
Copy Markdown
Member

This is a repush of the previous #66488, fixing bugs that caused https://tracker.ceph.com/issues/74798.

The last three commits are the fixes:

ce4e018cc0f6d25825379fb9959fb0cc3c60acef
2a1e290168f7f09483cd88ddd29effd65662a8d2
91371232e7da645a27457b2951caf7e614ab2d79

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.

@athanatos

Copy link
Copy Markdown
Contributor

jenkins test make check arm64

@athanatos

Copy link
Copy Markdown
Contributor

LGTM once you're satisfied with the testing. @Matan-B probably worth taking a look?

@Matan-B Matan-B added this to Crimson Mar 3, 2026
@Matan-B Matan-B moved this to Needs QA in Crimson Mar 3, 2026
@Matan-B

Matan-B commented Mar 4, 2026

Copy link
Copy Markdown
Contributor

#67225 is now merged which failed runs of this PR.
Should we retest this?

@Matan-B

Matan-B commented Mar 4, 2026

Copy link
Copy Markdown
Contributor

#67225 merged now, should we retest?

@xxhdx1985126

Copy link
Copy Markdown
Member Author

#67225 merged now, should we retest?

Yeah, just pushed the rebased code to ceph-ci:-)

@athanatos

Copy link
Copy Markdown
Contributor

jenkins test make check arm64

@xxhdx1985126

Copy link
Copy Markdown
Member Author

The code I tested contains two fixup commits, I'll squash them and test it again, after which I'll repush this PR.

@xxhdx1985126
xxhdx1985126 force-pushed the wip-seastore-background-trans-cc-opt-new branch from 9137123 to 2febad8 Compare March 6, 2026 13:27
@xxhdx1985126
xxhdx1985126 requested a review from a team as a code owner March 6, 2026 13:27
@xxhdx1985126

Copy link
Copy Markdown
Member Author

@Matan-B

Matan-B commented Mar 8, 2026

Copy link
Copy Markdown
Contributor

jenkins test docs

@Matan-B

Matan-B commented Mar 8, 2026

Copy link
Copy Markdown
Contributor

jenkins restest this please

@Matan-B Matan-B moved this from Needs QA to Tested in Crimson Mar 8, 2026
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]>
synchronous with contents updates

Since we need merge content of lba leaf nodes when committing
trim/cleaner transactions, and we rely on the child ptrs to determine
whether to modify mappings of pending leaf nodes. We must make sure
the ptr updates and node content updates are synchronous.

See LBALeafNode::merge_content_to() for detail

Signed-off-by: Xuehan Xu <[email protected]>
LBALeafNodes when committing them.

This is to deal with the following scenario:
1. A client transaction modifies the value of the LBALeafNode, but not
   the pladdr but other field;
2. A TRIM/CLEANER transaction modifies the pladdr for the same laddr_t
   concurrently

In the old approach, the client trans may override the pladdr with the
outdated value after the TRIM/CLEANER transaction commits

Signed-off-by: Xuehan Xu <[email protected]>
extents when updating paddrs for TRIM_DIRTY/CLEANER transactions

Signed-off-by: Xuehan Xu <[email protected]>
@xxhdx1985126
xxhdx1985126 force-pushed the wip-seastore-background-trans-cc-opt-new branch from 2febad8 to b8a8247 Compare March 9, 2026 09:56
@xxhdx1985126

Copy link
Copy Markdown
Member Author

Rebased onto the main branch.

@Matan-B
Matan-B merged commit 55c5d5c into ceph:main Mar 9, 2026
4 checks passed
@Matan-B Matan-B moved this from Tested to Merged (Main) in Crimson Mar 9, 2026
@github-actions

github-actions Bot commented Mar 9, 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 55c5d5ca04e88d5796564f444c0ed78fe2e302f7^..55c5d5ca04e88d5796564f444c0ed78fe2e302f7`

        The referenced tickets are:

        * https://tracker.ceph.com/issues/73070

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