Project

General

Profile

Actions

Bug #71861

closed
MB MA

radosbench: object_context_loader: lock_excl_sync()', ceph_assert(locked)

Bug #71861: radosbench: object_context_loader: lock_excl_sync()', ceph_assert(locked)

Added by Matan Breizman over 1 year ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
-
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v20.3.0-3901-g1f0624f538
Released In:
v21.2.0~1741
Upkeep Timestamp:
2026-10-24T01:41:52+00:00

Description

flavor is RelWithDebInfo:
https://pulpito.ceph.com/matan-2025-06-25_07:34:01-crimson-rados-wip-matanb-crimson-only-jun24-v3-distro-crimson-release-smithi/8348111

osd.2:

DEBUG 2025-06-25 08:13:42,964 [shard 2:main] seastore_epm - 0x6010000b9500 trans.5294 ExtentPlacementManager::write_preallocated_ool_extents: start with 0 allocated extents
DEBUG 2025-06-25 08:13:42,964 [shard 2:main] seastore_cache - 0x6010000b9500 trans.5294 Cache::prepare_record: mutated extent with 408B delta -- CachedExtent(addr=0x601000b96c00, type=ONODE_BLOCK_STAGED, trans=5294, pending_io=0, version=5, dirty_from=jseq(sseq(3), paddr<Seg[Dev(0x0),0x15],0xfd9000>), modify_time=tp(2025-06-25 08:13:42), paddr=paddr<Seg[Dev(0x0),0x15],0xf78000>, prior_paddr=nullopt, length=0x4000, loaded=0x4000, state=MUTATION_PENDING, last_committed_crc=4269290695, refcount=1, user_hint=Hint(NULL), rewrite_gen=GEN_NULL, laddr=L0xff03aa765fdd1004, seen=1, fltree_header=headerL0(is_level_tail=0, level=0))
DEBUG 2025-06-25 08:13:42,964 [shard 2:main] seastore_cache - 0x6010000b9500 trans.5294 Cache::prepare_record: commit replace extent ... -- CachedExtent(addr=0x601000b96c00, type=ONODE_BLOCK_STAGED, trans=5294, pending_io=0, version=5, dirty_from=jseq(sseq(3), paddr<Seg[Dev(0x0),0x15],0xfd9000>), modify_time=tp(2025-06-25 08:13:42), paddr=paddr<Seg[Dev(0x0),0x15],0xf78000>, prior_paddr=nullopt, length=0x4000, loaded=0x4000, state=MUTATION_PENDING, last_committed_crc=4269290695, refcount=1, user_hint=Hint(NULL), rewrite_gen=GEN_NULL, laddr=L0xff03aa765fdd1004, seen=1, fltree_header=headerL0(is_level_tail=0, level=0)), prior=CachedExtent(addr=0x6010001fae00, type=ONODE_BLOCK_STAGED, trans=0, pending_io=0, version=4, dirty_from=jseq(sseq(3), paddr<Seg[Dev(0x0),0x15],0xfd9000>), modify_time=tp(2025-06-25 08:13:40), paddr=paddr<Seg[Dev(0x0),0x15],0xf78000>, prior_paddr=nullopt, length=0x4000, loaded=0x4000, state=DIRTY, last_committed_crc=4269290695, refcount=2, user_hint=Hint(NULL), rewrite_gen=GEN_NULL, laddr=L0xff03aa765fdd1004, seen=1, fltree_header=headerL0(is_level_tail=0, level=0))
DEBUG 2025-06-25 08:13:42,964 [shard 2:main] seastore_cache - 0x6010000b9500 trans.5294 Cache::prepare_record: mutated extent with 150B delta -- CachedExtent(addr=0x601264e5b480, type=LADDR_LEAF, trans=5294, pending_io=0, version=11, dirty_from=jseq(sseq(3), paddr<Seg[Dev(0x0),0x15],0xcee000>), modify_time=tp(2025-06-25 08:13:42), paddr=paddr<Seg[Dev(0x0),0x15],0xc29000>, prior_paddr=nullopt, length=0x1000, loaded=0x1000, state=MUTATION_PENDING, last_committed_crc=3387337775, refcount=2, user_hint=Hint(NULL), rewrite_gen=GEN_NULL, size=93, meta=btree_node_meta_t(begin=L0xff03a7d13fa90000, end=L0xff03aa9298ba0000, depth=1), modifications=5, my_tracker=0x6010000d1be0, my_tracker->parent=0x601264e5b480, root_block=0)
DEBUG 2025-06-25 08:13:42,964 [shard 2:main] seastore_cache - 0x6010000b9500 trans.5294 Cache::prepare_record: commit replace extent ... -- CachedExtent(addr=0x601264e5b480, type=LADDR_LEAF, trans=5294, pending_io=0, version=11, dirty_from=jseq(sseq(3), paddr<Seg[Dev(0x0),0x15],0xcee000>), modify_time=tp(2025-06-25 08:13:42), paddr=paddr<Seg[Dev(0x0),0x15],0xc29000>, prior_paddr=nullopt, length=0x1000, loaded=0x1000, state=MUTATION_PENDING, last_committed_crc=3387337775, refcount=2, user_hint=Hint(NULL), rewrite_gen=GEN_NULL, size=93, meta=btree_node_meta_t(begin=L0xff03a7d13fa90000, end=L0xff03aa9298ba0000, depth=1), modifications=5, my_tracker=0x6010000d1be0, my_tracker->parent=0x601264e5b480, root_block=0), prior=CachedExtent(addr=0x601264ec9e00, type=LADDR_LEAF, trans=0, pending_io=0, version=10, dirty_from=jseq(sseq(3), paddr<Seg[Dev(0x0),0x15],0xcee000>), modify_time=tp(2025-06-25 08:13:42), paddr=paddr<Seg[Dev(0x0),0x15],0xc29000>, prior_paddr=nullopt, length=0x1000, loaded=0x1000, state=DIRTY, last_committed_crc=3387337775, refcount=3, user_hint=Hint(NULL), rewrite_gen=GEN_NULL, size=91, meta=btree_node_meta_t(begin=L0xff03a7d13fa90000, end=L0xff03aa9298ba0000, depth=1), modifications=0, my_tracker=0x601000d41dc0, my_tracker->parent=0x601264ec9e00, root_block=0)
ERROR 2025-06-25 08:13:42,967 [shard 1:main] osd - /home/jenkins-build/build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos9/DIST/centos9/MACHINE_SIZE/gigantic/release/20.3.0-1176-ge8fe99f8/rpm/el9/BUILD/ceph-20.3.0-1176-ge8fe99f8/src/crimson/osd/object_context_loader.h:59 : In function 'void crimson::osd::ObjectContextLoader::Manager::state_t::lock_excl_sync()', ceph_assert(locked)

Got SIGABRT on shard 1  
Backtrace:
  0# 0x00007F38D168C0FC in /lib64/libc.so.6
 1# raise in /lib64/libc.so.6
 2# abort in /lib64/libc.so.6
 3# ceph::__ceph_assert_fail(char const*, char const*, int, char const*) in ceph-osd
 4# ceph::__ceph_assert_fail(ceph::assert_data const&) in ceph-osd
 5# non-virtual thunk to crimson::osd::PG::scrub_requested(scrub_level_t, scrub_type_t) in ceph-osd
 6# ReplicatedRecoveryBackend::_handle_pull_response(pg_shard_t, PushOp&, PullOp*) in ceph-osd
 7# ReplicatedRecoveryBackend::handle_recovery_op(boost::intrusive_ptr<MOSDFastDispatchOp>, crimson::local_shared_foreign_ptr<crimson::local_shared_foreign_ptr<seastar::shared_ptr<crimson::net::Connection> > >) in ceph-osd
 8# ReplicatedRecoveryBackend::handle_pull_response(boost::intrusive_ptr<MOSDPGPush>) in ceph-osd
 9# ReplicatedRecoveryBackend::handle_recovery_op(boost::intrusive_ptr<MOSDFastDispatchOp>, crimson::local_shared_foreign_ptr<crimson::local_shared_foreign_ptr<seastar::shared_ptr<crimson::net::Connection> > >) in ceph-osd
10# crimson::osd::RecoverySubRequest::with_pg(crimson::osd::ShardServices&, boost::intrusive_ptr<crimson::osd::PG>) in ceph-osd
11# std::_Function_handler<seastar::future<void> (unsigned int), seastar::sharded<crimson::osd::PGShardMapping>::stop()::{lambda(seastar::future<void>)#1}::operator()(seastar::future<void>) const::{lambda(unsigned int)#1}>::_M_invoke(std::_Any_data const&, unsigned int&&) in ceph-osd
12# crimson::osd::OSD::prepare_to_stop() in ceph-osd
13# seastar::noncopyable_function<void (std::optional<std::__exception_ptr::exception_ptr> const&) noexcept>::direct_vtable_for<seastar::internal::abortable_fifo<seastar::shared_future<>::shared_state::entry, seastar::shared_future<>::shared_state::entry_expiry>::make_back_abortable(seastar::abort_source&)::{lambda(std::optional<std::__exception_ptr::exception_ptr> const&)#1}>::call(seastar::noncopyable_function<void (std::optional<std::__exception_ptr::exception_ptr> const&) noexcept> const*, std::optional<std::__exception_ptr::exception_ptr> const&) in ceph-osd

MB Updated by Matan Breizman over 1 year ago Actions #2

  • Subject changed from object_context_loader: lock_excl_sync()', ceph_assert(locked) to radosbench: object_context_loader: lock_excl_sync()', ceph_assert(locked)
  • Description updated (diff)

MB Updated by Matan Breizman over 1 year ago · Edited Actions #3

https://pulpito.ceph.com/teuthology-2025-07-12_21:04:03-crimson-rados-main-distro-crimson-release-smithi/8382599
https://pulpito.ceph.com/teuthology-2025-07-12_21:04:03-crimson-rados-main-distro-crimson-release-smithi/8382603
https://pulpito.ceph.com/teuthology-2025-07-12_21:04:03-crimson-rados-main-distro-crimson-release-smithi/8382629

All three instances are radosbench with Seastore on release.

osd.2:

ERROR 2025-07-13 00:10:04,864 [shard 2:main] osd - /home/jenkins-build/build/workspace/ceph-dev-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos9/DIST/centos9/MACHINE_SIZE/gigantic/release/20.3.0-1560-g569ca195/rpm/el9/BUILD/ceph-20.3.0-1560-g569ca195/src/crimson/osd/object_context_loader.h:59 : In function 'void crimson::osd::ObjectContextLoader::Manager::state_t::lock_excl_sync()', ceph_assert(locked)

 3# ceph::__ceph_assert_fail(char const*, char const*, int, char const*) in ceph-osd
 4# ceph::__ceph_assert_fail(ceph::assert_data const&) in ceph-osd
 5# non-virtual thunk to crimson::osd::PG::scrub_requested(scrub_level_t, scrub_type_t) in ceph-osd
 6# crimson::osd::ReplicatedRecoveryBackend::_handle_pull_response(pg_shard_t, PushOp&, PullOp*) in ceph-osd
 7# crimson::osd::ReplicatedRecoveryBackend::_handle_pull_response(pg_shard_t, PushOp&, PullOp*) in ceph-osd
 8# crimson::osd::ReplicatedRecoveryBackend::handle_pull_response(boost::intrusive_ptr<MOSDPGPush>) in ceph-osd
 9# crimson::osd::ReplicatedRecoveryBackend::handle_recovery_op(boost::intrusive_ptr<MOSDFastDispatchOp>, crimson::local_shared_foreign_ptr<crimson::local_shared_foreign_ptr<seastar::shared_ptr<crimson::net::Connection> > >) in ceph-osd
10# crimson::osd::RecoverySubRequest::with_pg(crimson::osd::ShardServices&, boost::intrusive_ptr<crimson::osd::PG>) in ceph-osd
11# crimson::osd::OSD::send_pg_stats() in ceph-osd
12# crimson::osd::OSD::start_asok_admin() in ceph-osd

MB Updated by Matan Breizman over 1 year ago Actions #4

  • Tags changed from RelWithDebInfo to RelWithDebInfo, frequent-failure

SJ Updated by Samuel Just over 1 year ago Actions #6

  • Priority changed from Normal to High

AM Updated by Aishwarya Mathuria over 1 year ago Actions #8

MB Updated by Matan Breizman over 1 year ago Actions #10

  • Priority changed from High to Urgent

MB Updated by Matan Breizman over 1 year ago Actions #11

  • Assignee set to MOHIT AGRAWAL

Hey Mohit, can you please take a look on this one?
Thanks!

MA Updated by MOHIT AGRAWAL about 1 year ago Actions #12

  • Assignee changed from MOHIT AGRAWAL to MOHIT AGRAWAL

JP Updated by Jose J Palacios Perez about 1 year ago Actions #14

https://pulpito.ceph.com/jjperez-2025-09-17_14:42:00-crimson-rados-wip-perezjos-crimson-only-17-09-2025-PR65197-distro-crimson-release-smithi/

Jobs 8506168, 8506201, 8506218, 8506199, 8506183, 8506170 all hit the same ceph_assert()


[jjperez@folio02 jjperez-2025-09-17_14:42:00-crimson-rados-wip-perezjos-crimson-only-17-09-2025-PR65197-distro-crimson-release-smithi]$ for x in $JOBS; do echo "== $x =="; grep -c 'is failed for' $x/teuthology.log; for y in $(ls $x/remote/*/log/ceph-osd.{0,1,2}.log.gz ); do zgrep -e ceph_assert -e Aborting $y; done ; done

== 8506168 ==
2025-09-17T16:30:43.832 INFO:tasks.daemonwatchdog.daemon_watchdog:daemon ceph.osd.2 is failed for ~0s
9

jjperez@folio02 jjperez-2025-09-17_14:42:00-crimson-rados-wip-perezjos-crimson-only-17-09-2025-PR65197-distro-crimson-release-smithi]$ zgrep -e ceph_assert -e Aborting 8506168/remote/smithi196/log/ceph-osd.2.log.gz
ERROR 2025-09-17 16:30:36,026 [shard 2:main] osd - /home/jenkins-build/build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos9/DIST/centos9/MACHINE_SIZE/gigantic/release/20.3.0-3068-gfaf8a23f/rpm/el9/BUILD/ceph-20.3.0-3068-gfaf8a23f/src/crimson/osd/object_context_loader.h:59 : In function 'void crimson::osd::ObjectContextLoader::Manager::state_t::lock_excl_sync()', ceph_assert(locked)
ERROR 2025-09-17 16:30:36,027 [shard 2:main] osd - Aborting Got SIGABRT on shard 2 - Stopping all shards
 3# ceph::__ceph_assert_fail(char const*, char const*, int, char const*) in ceph-osd
 4# ceph::__ceph_assert_fail(ceph::assert_data const&) in ceph-osd
 3# ceph::__ceph_assert_fail(char const*, char const*, int, char const*) in ceph-osd
 4# ceph::__ceph_assert_fail(ceph::assert_data const&) in ceph-osd
/usr/bin/grep: 8506168/remote/smithi196/log/ceph-osd.2.log.gz: binary file matches

== 8506201 ==
ceph.osd.{0,1,2}
9

$ for x in 8506201/remote/*/log/ceph-osd.{0,1,2}.log.gz; do zgrep -e ceph_assert -e Aborting $x; done
ERROR 2025-09-17 16:50:02,144 [shard 1:main] osd - /home/jenkins-build/build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos9/DIST/centos9/MACHINE_SIZE/gigantic/release/20.3.0-3068-gfaf8a23f/rpm/el9/BUILD/ceph-20.3.0-3068-gfaf8a23f/src/crimson/osd/object_context_loader.h:59 : In function 'void crimson::osd::ObjectContextLoader::Manager::state_t::lock_excl_sync()', ceph_assert(locked)
ERROR 2025-09-17 16:50:02,144 [shard 1:main] osd - Aborting Got SIGABRT on shard 1 - Stopping all shards
Aborting Got SIGABRT on shard 1 - Stopping all shardsDEBUG 2025-09-17 16:50:02,145 [shard 2:main] seastore_t - 0x6010000bae00 trans.6019 Cache::create_transaction: created name=do_transaction, source=MUTATE, is_weak=false
 3# ceph::__ceph_assert_fail(char const*, char const*, int, char const*) in ceph-osd
 4# ceph::__ceph_assert_fail(ceph::assert_data const&) in ceph-osd
 3# ceph::__ceph_assert_fail(char const*, char const*, int, char const*) in ceph-osd
 4# ceph::__ceph_assert_fail(ceph::assert_data const&) in ceph-osd

== 8506218 ==
2025-09-17T17:00:04.735 INFO:tasks.daemonwatchdog.daemon_watchdog:daemon ceph.osd.2 is failed for ~32s
7
ERROR 2025-09-17 16:59:26,002 [shard 2:main] osd - /home/jenkins-build/build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos9/DIST/centos9/MACHINE_SIZE/gigantic/release/20.3.0-3068-gfaf8a23f/rpm/el9/BUILD/ceph-20.3.0-3068-gfaf8a23f/src/crimson/osd/object_context_loader.h:59 : In function 'void crimson::osd::ObjectContextLoader::Manager::state_t::lock_excl_sync()', ceph_assert(locked)
ERROR 2025-09-17 16:59:26,002 [shard 2:main] osd - Aborting Got SIGABRT on shard 2 - Stopping all shards
Aborting Got SIGABRT on shard 2 - Stopping all shardsDEBUG 2025-09-17 16:59:26,002 [shard 1:main] seastore - 0x6020000bc000 trans.4710 SeaStoreS::do_transaction_no_callbacks: done
 3# ceph::__ceph_assert_fail(char const*, char const*, int, char const*) in ceph-osd
 4# ceph::__ceph_assert_fail(ceph::assert_data const&) in ceph-osd
 3# ceph::__ceph_assert_fail(char const*, char const*, int, char const*) in ceph-osd
 4# ceph::__ceph_assert_fail(ceph::assert_data const&) in ceph-osd

== 8506199 ==
2025-09-17T16:49:42.647 INFO:tasks.daemonwatchdog.daemon_watchdog:daemon ceph.osd.2 is failed for ~103s
20

ERROR 2025-09-17 16:47:47,074 [shard 1:main] osd - /home/jenkins-build/build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos9/DIST/centos9/MACHINE_SIZE/gigantic/release/20.3.0-3068-gfaf8a23f/rpm/el9/BUILD/ceph-20.3.0-3068-gfaf8a23f/src/crimson/osd/object_context_loader.h:59 : In function 'void crimson::osd::ObjectContextLoader::Manager::state_t::lock_excl_sync()', ceph_assert(locked)
ERROR 2025-09-17 16:47:47,074 [shard 1:main] osd - Aborting Got SIGABRT on shard 1 - Stopping all shards
Aborting Got SIGABRT on shard 1 - Stopping all shardsReactor stalled for 266 ms on shard 1, in scheduling group main. Backtrace: 0x1d7bd89 0x1d7f171 0x1d7f6e0 0x1d7f7f7 0x3ea5f 0xd9966 0xd9789 0x1188b9b 0x11894a4 0x1189d6d 0x3ea5f 0x8c0fb 0x3e9b5 0x28832 0x98faa8 0x98fb0d 0x91c2e3 0xe4007d 0xe4bb5d 0xe4c585 0xe4c87d 0xdcfbc0 0xc1615a 0xc165be 0xc6fbcb 0x1d7d3bf 0x1d7d674 0x1d9b7cd 0x1da423f 0x1e403e1 0x8a3b1 0x10f42f
 3# ceph::__ceph_assert_fail(char const*, char const*, int, char const*) in ceph-osd
 4# ceph::__ceph_assert_fail(ceph::assert_data const&) in ceph-osd
 3# ceph::__ceph_assert_fail(char const*, char const*, int, char const*) in ceph-osd
 4# ceph::__ceph_assert_fail(ceph::assert_data const&) in ceph-osd

== 8506183 ==
2025-09-17T16:39:37.777 INFO:tasks.daemonwatchdog.daemon_watchdog:daemon ceph.osd.2 is failed for ~32s
7

ERROR 2025-09-17 16:38:58,104 [shard 1:main] osd - /home/jenkins-build/build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos9/DIST/centos9/MACHINE_SIZE/gigantic/release/20.3.0-3068-gfaf8a23f/rpm/el9/BUILD/ceph-20.3.0-3068-gfaf8a23f/src/crimson/osd/object_context_loader.h:59 : In function 'void crimson::osd::ObjectContextLoader::Manager::state_t::lock_excl_sync()', ceph_assert(locked)
ERROR 2025-09-17 16:38:58,104 [shard 1:main] osd - Aborting Got SIGABRT on shard 1 - Stopping all shards
Aborting Got SIGABRT on shard 1 - Stopping all shardsDEBUG 2025-09-17 16:38:58,108 [shard 2:main] seastore_t - 0x6010000b8e00 trans.6037 Cache::create_transaction: created name=do_transaction, source=MUTATE, is_weak=false
 3# ceph::__ceph_assert_fail(char const*, char const*, int, char const*) in ceph-osd
 4# ceph::__ceph_assert_fail(ceph::assert_data const&) in ceph-osd
 3# ceph::__ceph_assert_fail(char const*, char const*, int, char const*) in ceph-osd
 4# ceph::__ceph_assert_fail(ceph::assert_data const&) in ceph-osd

== 8506170 ==
2025-09-17T16:54:36.042 INFO:tasks.daemonwatchdog.daemon_watchdog:daemon ceph.osd.1 is failed for ~303s
5
ERROR 2025-09-17 16:49:22,040 [shard 2:main] osd - /home/jenkins-build/build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos9/DIST/centos9/MACHINE_SIZE/gigantic/release/20.3.0-3068-gfaf8a23f/rpm/el9/BUILD/ceph-20.3.0-3068-gfaf8a23f/src/crimson/osd/object_context_loader.h:59 : In function 'void crimson::osd::ObjectContextLoader::Manager::state_t::lock_excl_sync()', ceph_assert(locked)
IST/centos9/DIST/centos9/MACHINE_SIZE/gigantic/release/20.3.0-3068-gfaf8a23f/rpm/el9/BUILD/ceph-20.3.0-3068-gfaf8a23f/src/crimson/osd/object_context_loader.h:59 : In function 'void crimson::osd::ObjectContextLoader::Manager::state_t::lock_excl_sync()', ceph_assert(locked)
ERROR 2025-09-17 16:49:22,040 [shard 2:main] osd - Aborting Got SIGABRT on shard 2 - Stopping all shards
ERROR 2025-09-17 16:49:22,040 [shard 2:main] osd - Aborting Got SIGABRT on shard 2 - Stopping all shards
Aborting Got SIGABRT on shard 2 - Stopping all shardsDEBUG 2025-09-17 16:49:22,040 [shard 1:main] seastore_omap - 0x6010000bf180 trans.89 OMapLeafNode::list: found key dup_0000000222.00000000000000000429
 3# ceph::__ceph_assert_fail(char const*, char const*, int, char const*) in ceph-osd
 4# ceph::__ceph_assert_fail(ceph::assert_data const&) in ceph-osd
 3# ceph::__ceph_assert_fail(char const*, char const*, int, char const*) in ceph-osd
 4# ceph::__ceph_assert_fail(ceph::assert_data const&) in ceph-osd

KT Updated by Kautilya Tripathi about 1 year ago Actions #15

osd.2:

http://qa-proxy.ceph.com/teuthology/amathuri-2025-09-23_07:08:21-crimson-rados-wip-kautilya-testing-corouint-state-device-distro-crimson-debug-smithi/8515877/teuthology.log

osd.2:

http://qa-proxy.ceph.com/teuthology/knrt-2025-09-18_12:08:55-crimson-rados-main-distro-crimson-debug-smithi/8509025/teuthology.log

DEBUG 2025-09-18 14:52:37,673 [shard 0:main] seastore_cache - Cache::get_oldest_backref_dirty_from: backref_oldest: jseq(sseq(2), paddr<Seg[Dev(0x0),0xe],0x2000>)                                                 │
DEBUG 2025-09-18 14:52:37,673 [shard 0:main] seastore_cache - Cache::get_oldest_dirty_from: dirty_oldest: jseq(sseq(1), paddr<Seg[Dev(0x0),0x7],0x7000>)                                                           │
DEBUG 2025-09-18 14:52:37,673 [shard 0:main] seastore_cleaner - JournalTrimmerImpl::update_journal_tails: journal_dirty_tail jseq(sseq(1), paddr<Seg[Dev(0x0),0x7],0x7000>) => jseq(sseq(1), paddr<Seg[Dev(0x0),0x7│
DEBUG 2025-09-18 14:52:37,673 [shard 0:main] seastore_cleaner - JournalTrimmerImpl::update_journal_tails: journal_alloc_tail jseq(sseq(2), paddr<Seg[Dev(0x0),0xe],0x2000>) => jseq(sseq(2), paddr<Seg[Dev(0x0),0xe│
DEBUG 2025-09-18 14:52:37,673 [shard 0:main] seastore - 0x60000012dc00 trans.6359 SeaStoreS::do_transaction_no_callbacks: done                                                                                     │
ERROR 2025-09-18 14:52:38,092 [shard 2:main] osd - Got SIGABRT on shard 2                                                                                                                                          │
Backtrace:                                                                                                                                                                                                         │
  0# 0x00007F0E21E8C0FC in /lib64/libc.so.6                                                                                                                                                                        │
 1# raise in /lib64/libc.so.6                                                                                                                                                                                      │
 2# abort in /lib64/libc.so.6                                                                                                                                                                                      │
 3# ceph::__ceph_assert_fail(char const*, char const*, int, char const*) in ceph-osd                                                                                                                               │
 4# ceph::__ceph_assert_fail(ceph::assert_data const&) in ceph-osd                                                                                                                                                 │
 5# non-virtual thunk to crimson::osd::PG::scrub_requested(scrub_level_t, scrub_type_t) in ceph-osd                                                                                                                │
 6# crimson::osd::ReplicatedRecoveryBackend::_handle_pull_response(pg_shard_t, PushOp&, PullOp*) in ceph-osd                                                                                                       │
 7# crimson::osd::ReplicatedRecoveryBackend::handle_push_reply(boost::intrusive_ptr<MOSDPGPushReply>) in ceph-osd                                                                                                  │
 8# crimson::osd::ReplicatedRecoveryBackend::handle_pull_response(boost::intrusive_ptr<MOSDPGPush>) in ceph-osd                                                                                                    │
 9# crimson::osd::ReplicatedRecoveryBackend::handle_recovery_op(boost::intrusive_ptr<MOSDFastDispatchOp>, crimson::local_shared_foreign_ptr<crimson::local_shared_foreign_ptr<seastar::shared_ptr<crimson::net::Con│
10# crimson::osd::RecoverySubRequest::with_pg(crimson::osd::ShardServices&, boost::intrusive_ptr<crimson::osd::PG>) in ceph-osd                                                                                    │
11# crimson::osd::OSD::send_pg_stats() in ceph-osd                                                                                                                                                                 │
12# crimson::osd::OSD::send_pg_stats() in ceph-osd                                                                                                                                                                 │
13# seastar::noncopyable_function<void (std::optional<std::__exception_ptr::exception_ptr> const&) noexcept>::direct_vtable_for<seastar::internal::abortable_fifo<seastar::shared_future<>::shared_state::entry, se│
14# _Unwind_RaiseException in ceph-osd                                                                                                                                                                             │
15# _Unwind_RaiseException in ceph-osd                                                                                                                                                                             │
16# _Unwind_RaiseException in ceph-osd                                                                                                                                                                             │
17# _Unwind_RaiseException in ceph-osd                                                                                                                                                                             │
18# void std::__exception_ptr::__dest_thunk<std::logic_error>(void*) in ceph-osd                                                                                                                                   │
19# 0x00007F0E21E8A3B2 in /lib64/libc.so.6                                                                                                                                                                         │
20# 0x00007F0E21F0F430 in /lib64/libc.so.6

SJ Updated by Samuel Just about 1 year ago · Edited Actions #16

Except for the runs in https://tracker.ceph.com/issues/71861#note-8 (on a split wip branch), all of the ones I checked are in crimson-rados/perf, which disables osd logging. One way to make progress would be to make a make a branch reenabling osd and ms logging (debug osd = 20, debug ms = 1) on that subsuite and running just crimson-rados/perf a few times. Hopefully it'll reproduce with osd logging.

@MOHIT AGRAWAL points out that ReplicatedRecoveryBackend::recover_object and ReplicatedRecoveryBackend::maybe_pull_missing_obj take read locks on the the object before it's been recovered. ReplicatedRecoveryBackend::_handle_pull_response calls lock_excl_sync(), which assumes that the obc cannot be locke dprior to completing the recovery operation. These two behaviors appear contradictory.

The lock in ReplicatedRecoveryBackend::maybe_pull_missing_obj was introduced in dc91e78df4cda39b09b80f0cdf7de4f7571a9365 -- that may be the problem.

I think the two options here are:
1. Audit all obc locking usages and avoid locking any obc prior to it being recovered locally.
2. Change the lock_excl_sync() call to be able to wait for the lock to be released. This would require auditing that code path to ensure that waiting there is actually safe.

MA Updated by MOHIT AGRAWAL about 1 year ago Actions #17

After applying the debug log patch (https://github.com/ceph/ceph/compare/main...mohit84:ceph:crimson_lock_excl_sync?expand=1
), it seems the lock is not being released.

The flow for acquiring a lock is as follows:

1) with_obc acquires the lock.

2) maybe_pull_missing_obj is called inside a lambda, which sends a message via send_to_osd and returns a future.

3) When the future from with_obc is received, the lock is released during object destruction.

After adding a debug message, in the failure case i could not see the message "MY_LOG lambda completed for oid {}".
This indicates that the lambda is still waiting on the future. If _handle_pull_response is called at the same time, it will
assert because the lock has not been released yet. In successful cases, the message appears in the log as expected.

To avoid this, implement a wrapper to wait for the lock in case it is not available.

MA Updated by MOHIT AGRAWAL about 1 year ago Actions #18

  • Status changed from New to Fix Under Review
  • Pull request ID set to 65849

MB Updated by Matan Breizman about 1 year ago Actions #19

  • Status changed from Fix Under Review to Resolved

UB Updated by Upkeep Bot about 1 year ago Actions #20

  • Merge Commit set to 1f0624f538221e091dc7761190c25db3ddc87013
  • Fixed In set to v20.3.0-3901-g1f0624f538
  • Upkeep Timestamp set to 2025-11-06T11:11:40+00:00

UB Updated by Upkeep Bot about 1 month ago Actions #21

  • Released In set to v21.2.0~1741
  • Upkeep Timestamp changed from 2025-11-06T11:11:40+00:00 to 2026-10-24T01:41:52+00:00
Actions

Also available in: PDF Atom