From: Aishwarya Mathuria Date: Wed, 21 Jan 2026 11:31:20 +0000 (+0000) Subject: crimson/os/seastore: Add progress logging to transaction processing X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F67024%2Fhead;p=ceph.git crimson/os/seastore: Add progress logging to transaction processing Log "op X of Y" during the transaction iteration in do_transaction_no_callbacks to improve observability during transactions. Signed-off-by: Aishwarya Mathuria --- diff --git a/src/crimson/os/seastore/seastore.cc b/src/crimson/os/seastore/seastore.cc index 4f3ed7bafd71..6a03ab801bd2 100644 --- a/src/crimson/os/seastore/seastore.cc +++ b/src/crimson/os/seastore/seastore.cc @@ -1493,11 +1493,22 @@ seastar::future<> SeaStore::Shard::do_transaction_no_callbacks( ctx.reset_preserve_handle(*transaction_manager); std::vector onodes(ctx.iter.objects.size()); + + // Get the total number of operations from the transaction + const size_t total_ops = ctx.ext_transaction.get_num_ops(); + size_t current_op = 0; + while (ctx.iter.have_op()) { + current_op++; + + DEBUGT("processing op {} of {} for cid={}", + t, current_op, total_ops, ctx.ch->get_cid()); co_await _do_transaction_step( ctx, ctx.ch, onodes, ctx.iter); } + DEBUGT("completed all {} ops for cid={}", + t, total_ops, ctx.ch->get_cid()); co_await transaction_manager->submit_transaction(*ctx.transaction); }) ).handle_error(