Skip to content

crimson/os/seastore: Add progress logging to transaction processing - #67024

Merged
Matan-B merged 2 commits into
ceph:mainfrom
amathuria:wip-amat-fix-73791
Feb 9, 2026
Merged

Matan-B merged 2 commits into
ceph:mainfrom
amathuria:wip-amat-fix-73791

Conversation

@amathuria

@amathuria amathuria commented Jan 21, 2026 •

Copy link
Copy Markdown
Contributor

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.

@amathuria
amathuria requested a review from a team as a code owner January 21, 2026 14:41
@amathuria
amathuria requested a review from Matan-B January 21, 2026 14:41
@@ -5,6 +5,7 @@ overrides:
- objects unfound and apparently lost
conf:
osd:
osd target transaction size: 5

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.

Can you please link the tracker as a comment above this line?

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.

nit:

...

To fix this,  we are reducing osd_target_transaction_size to 5 to lower
conflict rates and allow deletion transactions to complete.

Note: This is a temporary workaround until the conflict transaction
      mechanism is restructured

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.

Might be even worth to open a followup tracker to remove the txn size limitation once its not relevant anymore.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Comment thread src/crimson/osd/pg.cc
for (auto &obj : objs_to_rm) {
if (obj == pgmeta_oid || obj.is_internal_pg_local()) {
continue;
}
logger().trace("pg {}, removing obj {}", pgid, obj);

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.

Can we keep the per-object trace log? Could be useful to debug specific object issues.

Comment thread src/crimson/osd/pg.cc Outdated
@@ -500,17 +501,17 @@ PG::do_delete_work(ceph::os::Transaction &t, ghobject_t _next)
});
return {next, false};
} else {
DEBUGDPP("pg {}, removing {} objects", *this, pgid, objs_to_rm.size());

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.

nit, Could be slightly confusing. How about:
DEBUGDPP("pg {}, removing {} objects in this batch", *this, pgid, objs_to_rm.size());
Or even more informative:

DEBUGDPP("pg {}, removing {} objects out of {}", *this, pgid, objs_to_rm.size(), delta_stats.num_objects);`

Comment on lines +1502 to +1503
DEBUGT("processing op {} of {} for cid={}",
t, current_op, total_ops, ctx.ch->get_cid());

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.

👍 !

@Matan-B Matan-B added this to Crimson Jan 22, 2026
@Matan-B Matan-B moved this to Needs QA in Crimson Jan 22, 2026
@Matan-B

Matan-B commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

jenkins test windows

@amathuria

amathuria commented Feb 4, 2026 •

Copy link
Copy Markdown
Contributor Author

@Matan-B Matan-B 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.

@amathuria, seems #66488 is merged and might help to avoid opening https://tracker.ceph.com/issues/73791 follow up.
Perhaps we can avoid the txn decrease now and keep the other commits, WDYT?

@amathuria

Copy link
Copy Markdown
Contributor Author

@amathuria, seems #66488 is merged and might help to avoid opening https://tracker.ceph.com/issues/73791 follow up. Perhaps we can avoid the txn decrease now and keep the other commits, WDYT?

That's great! Yeah sure if we can avoid the txn decrease now I'll drop that commit.

@Matan-B

Matan-B commented Feb 4, 2026

Copy link
Copy Markdown
Contributor

@amathuria, seems #66488 is merged and might help to avoid opening https://tracker.ceph.com/issues/73791 follow up. Perhaps we can avoid the txn decrease now and keep the other commits, WDYT?

That's great! Yeah sure if we can avoid the txn decrease now I'll drop that commit.

In case the issue persists in main we could re-introduce the decrease

Log "op X of Y" during the transaction iteration in do_transaction_no_callbacks
to improve observability during transactions.

Signed-off-by: Aishwarya Mathuria <[email protected]>
@amathuria amathuria changed the title qa/suites/crimson-rados/thrash: Fix OSDMap progression hang by tuning PG delete batch size crimson/os/seastore: Add progress logging to transaction processing Feb 4, 2026
@amathuria

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@Matan-B

Matan-B commented Feb 5, 2026

Copy link
Copy Markdown
Contributor

jenkins retest this please

@Matan-B Matan-B moved this from Needs QA to Tested in Crimson Feb 5, 2026
@Matan-B
Matan-B merged commit ecb025f into ceph:main Feb 9, 2026
9 checks passed
@Matan-B Matan-B moved this from Tested to Merged (Main) in Crimson Feb 9, 2026
@github-actions

github-actions Bot commented Feb 9, 2026

Copy link
Copy Markdown

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

I have resolved the following tracker ticket due to the merge of this PR:

No backports are pending for the ticket. If this is incorrect, please update the tracker
ticket and reset to Pending Backport state.

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

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.

4 participants