Skip to content

crimson/os/seastore: Prepare no invalidation to LBA user txns - #68127

Merged
Matan-B merged 4 commits into
ceph:mainfrom
Matan-B:wip-matanb-seastore-conflict-user-lba
Apr 26, 2026
Merged

Matan-B merged 4 commits into
ceph:mainfrom
Matan-B:wip-matanb-seastore-conflict-user-lba

Conversation

@Matan-B

@Matan-B Matan-B commented Mar 31, 2026 •

Copy link
Copy Markdown
Contributor

This is a preparation to the suggested alternative in: #67755
See: #67755 (comment)

Key commit:

Generalize prepare_rewrite_publish_to_prior() into stage_visibility_handoff().

* introduce should_use_no_conflict_publish

* Replace is_rewrite_transaction() checks with should_use_no_conflict_publish(),
  so adding new no-conflict users becomes straightforward.

* Stop committing metadata (commit_state + sync_checksum) during prepare_record()
  (pre-commit). While it is correct for rewrite, doing it pre-commit doesn't buy
  us anything today because readers are still blocked until the publish finishes.

  Moving metadata commit to the after commit phase would also make future
  non-rewrite users easier to support.

This is a prep step for expanding no-conflict publish coverage.

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.

@Matan-B Matan-B mentioned this pull request Mar 31, 2026
14 tasks
@Matan-B
Matan-B requested review from jdurgin and xxhdx1985126 April 6, 2026 08:41
@xxhdx1985126 xxhdx1985126 self-assigned this Apr 9, 2026
Comment thread src/crimson/os/seastore/cache.cc Resolved
@Matan-B
Matan-B force-pushed the wip-matanb-seastore-conflict-user-lba branch 2 times, most recently from 8590c86 to 84c3206 Compare April 19, 2026 10:49
@Matan-B Matan-B changed the title crimson/os/seastore: Extend no invalidation to LBA user txns crimson/os/seastore: Prepare no invalidation to LBA user txns Apr 19, 2026
@Matan-B
Matan-B marked this pull request as ready for review April 19, 2026 10:49
@Matan-B
Matan-B requested a review from a team as a code owner April 19, 2026 10:49
@Matan-B
Matan-B requested a review from xxhdx1985126 April 19, 2026 10:52
Matan-B added 3 commits April 21, 2026 07:28
Currently, we use rewriting bool for visibily checks (is_stable_ready).
To prepare this check to also support user txns, rename this member.

Signed-off-by: Matan Breizman <[email protected]>
We will need this gate for other types of txns as well

Signed-off-by: Matan Breizman <[email protected]>
commit_replace_extent rewrite isn't actually replacing the extents.
Introduce prepare_rewrite_publish_to_prior for rewrite txns.
No change in behavior yet.

Signed-off-by: Matan Breizman <[email protected]>
@Matan-B
Matan-B force-pushed the wip-matanb-seastore-conflict-user-lba branch from 84c3206 to ef751e8 Compare April 21, 2026 07:30
@Matan-B

Matan-B commented Apr 21, 2026 •

Copy link
Copy Markdown
Contributor Author

@Matan-B
Matan-B force-pushed the wip-matanb-seastore-conflict-user-lba branch from ee7029d to 0a6629b Compare April 21, 2026 08:43
@Matan-B
Matan-B force-pushed the wip-matanb-seastore-conflict-user-lba branch from 0a6629b to 88a7057 Compare April 21, 2026 08:45
Generalize prepare_rewrite_publish_to_prior() into stage_visibility_handoff().

* introduce should_use_no_conflict_publish

* Replace is_rewrite_transaction() checks with should_use_no_conflict_publish(),
  so adding new no-conflict users becomes straightforward.

* Stop committing metadata (commit_state + sync_checksum) during prepare_record()
  (pre-commit). While it is correct for rewrite, doing it pre-commit doesn't buy
  us anything today because readers are still blocked until the publish finishes.

  Moving metadata commit to the after commit phase would also make future
  non-rewrite users easier to support.

This is a prep step for expanding no-conflict publish coverage.

Signed-off-by: Matan Breizman <[email protected]>
@Matan-B
Matan-B force-pushed the wip-matanb-seastore-conflict-user-lba branch from 88a7057 to 9f0896e Compare April 23, 2026 09:24
@Matan-B

Matan-B commented Apr 23, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@xxhdx1985126

Copy link
Copy Markdown
Member

LGTM:-)

@Matan-B

Matan-B commented Apr 26, 2026

Copy link
Copy Markdown
Contributor Author
cephfs (new suite):
174742 - cephfs_data
174781 - cephfs SLOW_OPS
infra:
174802 - infra (cannot statx '/home/ubuntu/cephtest/mnt.0': No such file or directory)
174818 - infra 
174830 - infra
174843 - infra
known:
174831 - https://tracker.ceph.com/issues/70501#note-39

@Matan-B
Matan-B merged commit 7909e81 into ceph:main Apr 26, 2026
6 checks passed
@Matan-B Matan-B added this to Crimson Apr 26, 2026
@Matan-B Matan-B moved this to Merged (Main) in Crimson Apr 26, 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.

2 participants