Skip to content

crimsn/os/seastore: separate reset accounting from transaction creation - #69211

Merged
Matan-B merged 3 commits into
ceph:mainfrom
Matan-B:wip-matanb-seastore-conflict-counters
Jun 9, 2026
Merged

Matan-B merged 3 commits into
ceph:mainfrom
Matan-B:wip-matanb-seastore-conflict-counters

Conversation

@Matan-B

@Matan-B Matan-B commented Jun 1, 2026 •

Copy link
Copy Markdown
Contributor

This avoids doubling MUTATE trans_created with retry resets and makes created vs committed accounting easier to understand.

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 added this to Crimson Jun 1, 2026
@Matan-B Matan-B moved this to In Progress in Crimson Jun 1, 2026
Matan-B added 2 commits June 3, 2026 09:39
with_repeat_trans_intr() was previously mixing retry mechanics with
transaction-specific behavior such as reset and preserve handle.

instead, introduce prepare_attempt hook to run before each retry
attempt. Keep the older variant overload with no prepare (internal
users)

Also, fix func/args forwarding to avoid re-moving.

Signed-off-by: Matan Breizman <[email protected]>
do_transaction_no_callbacks() relied on with_repeat_trans_intr()
implicitly resetting the transaction before every retry attempt.

That behavior is policy, not retry mechanics, so it should live
with the caller.

Signed-off-by: Matan Breizman <[email protected]>
@Matan-B
Matan-B force-pushed the wip-matanb-seastore-conflict-counters branch 2 times, most recently from edb5944 to 20f57fe Compare June 3, 2026 10:06
reseting a txn doesnt really create a new one semantically.
avoid incrementing "created" on reset, otherwise we end up
with inflated numbers where MUTATE txn created count
is twice as higher than committed.

Note, "resets" are already tracked as invalidated.

Signed-off-by: Matan Breizman <[email protected]>
@Matan-B
Matan-B force-pushed the wip-matanb-seastore-conflict-counters branch from 20f57fe to deb815c Compare June 3, 2026 10:11
@Matan-B
Matan-B marked this pull request as ready for review June 3, 2026 10:12
@Matan-B
Matan-B requested a review from a team as a code owner June 3, 2026 10:12
@Matan-B
Matan-B requested a review from xxhdx1985126 June 3, 2026 10:12
@Matan-B Matan-B moved this from In Progress to Awaits review in Crimson Jun 3, 2026
@perezjosibm

perezjosibm commented Jun 4, 2026 •

Copy link
Copy Markdown
Contributor
PR=wip-perezjos-crimson-only-04-06-2026-PR69211
teuthology-suite -s crimson-rados -p 101 --force-priority -c $PR  -f debug  --filter-out rgw --filter seastore --suite-branch main --suite-repo https://github.com/ceph/ceph.git
2026-06-04 15:35:45,432.432 INFO:teuthology.suite.run:Test results viewable at 

https://pulpito-ng.ceph.com/jjperez-2026-06-04_15:31:05-crimson-rados-wip-perezjos-crimson-only-04-06-2026-PR69211-distro-debug-trial/

  • All but 8 jobs failed, not trust this run, so will be rebuilding and triggering again 😞

@perezjosibm

perezjosibm commented Jun 7, 2026 •

Copy link
Copy Markdown
Contributor
teuthology-suite -s crimson-rados -p 101 --force-priority -c $PR  -f debug  --filter-out rgw --filter seastore --suite-branch main --suite-repo https://github.com/ceph/ceph.git
2026-06-07 19:58:35,413.413 INFO:teuthology.suite.run:Test results viewable at

https://pulpito-ng.ceph.com/jjperez-2026-06-07_19:54:48-crimson-rados-wip-perezjos-crimson-only-07-06-2026-PR69211-distro-debug-trial/

  • QA analysis complete: only two failed jobs, none related to this PR.

@perezjosibm perezjosibm moved this from Needs QA to Tested in Crimson Jun 8, 2026
@Matan-B
Matan-B merged commit 683121d into ceph:main Jun 9, 2026
6 checks passed
@Matan-B Matan-B moved this from Tested to Merged (Pre Umbrella cutoff) in Crimson Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Merged (Pre Umbrella cutoff)

Development

Successfully merging this pull request may close these issues.

3 participants