Bug #75778
closedosd/osd_types.h: 5250: FAILED ceph_assert(it->second == oid)
0%
Description
/a/skanta-2026-03-03_23:53:54-rados-wip-bharath6-testing-2026-03-03-1755-distro-default-trial/79587
description: rados/thrash/{0-size-min-size-overrides/2-size-2-min-size 1-pg-log-overrides/normal_pg_log
2-recovery-overrides/{more-active-recovery} 3-scrub-overrides/{max-simultaneous-scrubs-3}
backoff/peering ceph clusters/{fixed-4} crc-failures/bad_map_crc_failure d-balancer/upmap-read
mon_election/classic msgr-failures/osd-delay msgr/async-v2only objectstore/{bluestore/{alloc$/{bitmap}
base mem$/{normal-2} onode-segment$/{none} write$/{random/{compr$/{no$/{no}} random}}}}
rados supported-random-distro$/{ubuntu_latest} thrashers/careful_host thrashosds-health
workloads/snaps-few-objects}
2026-03-04T00:29:16.022 INFO:tasks.ceph.osd.2.trial049.stderr:./src/osd/osd_types.h: In function 'void pg_missing_set<TrackChanges>::add(const hobject_t&, eversion_t, eversion_t, bool) [with bool TrackChanges = false]' thread 7f69e1698640 time 2026-03-04T00:29:16.024644+0000 2026-03-04T00:29:16.023 INFO:tasks.ceph.osd.2.trial049.stderr:./src/osd/osd_types.h: 5250: FAILED ceph_assert(it->second == oid) 2026-03-04T00:29:16.024 INFO:tasks.ceph.osd.2.trial049.stderr: ceph version 20.3.0-5759-g58986c3d (58986c3dfdd6ffa2fdac787ee5964ca0c54de1c9) tentacle (dev - None) 2026-03-04T00:29:16.025 INFO:tasks.ceph.osd.2.trial049.stderr: 1: (ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x125) [0x56130d50a07b] 2026-03-04T00:29:16.025 INFO:tasks.ceph.osd.2.trial049.stderr: 2: ceph-osd(+0x4072a8) [0x56130d4be2a8] 2026-03-04T00:29:16.025 INFO:tasks.ceph.osd.2.trial049.stderr: 3: (PrimaryLogPG::prep_backfill_object_push(hobject_t, eversion_t, std::shared_ptr<ObjectContext>, std::vector<pg_shard_t, std::allocator<pg_shard_t> >, PGBackend::RecoveryHandle*)+0xd3) [0x56130d7e6533] 2026-03-04T00:29:16.025 INFO:tasks.ceph.osd.2.trial049.stderr: 4: (PrimaryLogPG::recover_backfill(unsigned long, ThreadPool::TPHandle&, bool*)+0xbc4) [0x56130d7ee5f4] 2026-03-04T00:29:16.025 INFO:tasks.ceph.osd.2.trial049.stderr: 5: (PrimaryLogPG::start_recovery_ops(unsigned long, ThreadPool::TPHandle&, unsigned long*)+0xce7) [0x56130d7e13c7] 2026-03-04T00:29:16.025 INFO:tasks.ceph.osd.2.trial049.stderr: 6: (OSD::do_recovery(PG*, unsigned int, unsigned long, int, ThreadPool::TPHandle&)+0x152) [0x56130d6d1d72] 2026-03-04T00:29:16.025 INFO:tasks.ceph.osd.2.trial049.stderr: 7: (ceph::osd::scheduler::PGRecovery::run(OSD*, OSDShard*, boost::intrusive_ptr<PG>&, ThreadPool::TPHandle&)+0xca) [0x56130d9371da] 2026-03-04T00:29:16.025 INFO:tasks.ceph.osd.2.trial049.stderr: 8: (OSD::ShardedOpWQ::_process(unsigned int, unsigned int, ceph::heartbeat_handle_d*)+0x7ce) [0x56130d6ed6be] 2026-03-04T00:29:16.025 INFO:tasks.ceph.osd.2.trial049.stderr: 9: (ShardedThreadPool::shardedthreadpool_worker(unsigned int, unsigned int)+0x326) [0x56130dc36406] 2026-03-04T00:29:16.025 INFO:tasks.ceph.osd.2.trial049.stderr: 10: ceph-osd(+0xb7fc27) [0x56130dc36c27] 2026-03-04T00:29:16.025 INFO:tasks.ceph.osd.2.trial049.stderr: 11: /lib/x86_64-linux-gnu/libc.so.6(+0x94ac3) [0x7f6a08fabac3] 2026-03-04T00:29:16.026 INFO:tasks.ceph.osd.2.trial049.stderr: 12: /lib/x86_64-linux-gnu/libc.so.6(+0x1268d0) [0x7f6a0903d8d0]
This check was added as part of this PR: https://github.com/ceph/ceph/pull/66799/changes#diff-2afdb04efc03ee865d477446f772c77c66cb26236998e8395d2e10395636379aR5250
Unsure if the tests needs to be updated or if this is an actual bug in code
Files
NN Updated by Naveen Naidu 8 months ago
Alex, assigned the issue to you since you were the author of the PR, Apologies if this was a wrong assignement!
NN Updated by Naveen Naidu 8 months ago
/a/skanta-2026-03-03_23:53:54-rados-wip-bharath6-testing-2026-03-03-1755-distro-default-trial
1 jobs: ['79587']
KS Updated by Kamoltat (Junior) Sirivadhna 8 months ago
bug scrub: bump and ping @Alex Ainscow
KS Updated by Kamoltat (Junior) Sirivadhna 8 months ago
bump up
AA Updated by Alex Ainscow 8 months ago
The assert here is indicating that two different objects on the same PG were associated with the same version.
This looks to be caused by a PG Merge:
At the same timestamp, two different PGs independently generated version 956'1955:
PG 3.1f:
pg[3.1f( v 953'1954...)] append_log ... [956'1955 (951'1947) modify 3:fb3c0982:::trial07520086-26:1ae ...]
Object: 3:fb3c0982:::trial07520086-26:1ae
Version: 956'1955
PG: 3.1f (hash 0xfb3c0982 & 0x1f = 0x1f = 31)
PG 3.f:
pg[3.f( v 953'1953...)] append_log ... [956'1955 (953'1951) modify 3:f6b9b5ab:::trial07520086-39:head ...]
Object: 3:f6b9b5ab:::trial07520086-39:head
Version: 956'1955
PG: 3.f (hash 0xf6b9b5ab & 0x1f = 0xf = 15)
These PGs are then merged, then OSD 14 is failed and replaced by OSD 7. Since the OI contains a duplicate version, this causes rmissing updates to assert.
I expect the best fix is to make rmissing able to cope with this state.
YW Updated by Yuri Weinstein 8 months ago
- Related to Bug #75962: OSD crashes with FAILED ceph_assert(0 == "unexpected need for missing item") in MissingLoc::add_active_missing() during EC thrash added
AA Updated by Alex Ainscow 8 months ago
Attached is reproduce_pg_merge_bug.sh - this script recreates the issue on a vstart cluster with 6 OSDs.
AA Updated by Alex Ainscow 8 months ago
- Related to deleted (Bug #75962: OSD crashes with FAILED ceph_assert(0 == "unexpected need for missing item") in MissingLoc::add_active_missing() during EC thrash)
LF Updated by Laura Flores 8 months ago
Bump up
JP Updated by Jaya Prakash 7 months ago
/a/jayaprakash-2026-04-22_20:27:56-rados-wip-jaya-testing-22-04-2026-distro-default-trial/169667
LF Updated by Laura Flores 7 months ago
Bump up; @Alex Ainscow
AA Updated by Alex Ainscow 7 months ago
- Status changed from New to Pending Backport
- Backport set to tentacle
- Pull request ID set to 68284
UB Updated by Upkeep Bot 7 months ago
- Copied to Backport #76385: tentacle: osd/osd_types.h: 5250: FAILED ceph_assert(it->second == oid) added
UB Updated by Upkeep Bot 7 months ago
- Tags (freeform) set to backport_processed
UB Updated by Upkeep Bot 7 months ago
- Merge Commit set to 2a23682b08f37afd358ffe6b58ea55d0b8d85f76
- Fixed In set to v21.0.0-1085-g2a23682b08
- Upkeep Timestamp set to 2026-05-01T16:13:04+00:00
UB Updated by Upkeep Bot 5 months ago
- Status changed from Pending Backport to Resolved
- Upkeep Timestamp changed from 2026-05-01T16:13:04+00:00 to 2026-07-10T13:28:55+00:00
UB Updated by Upkeep Bot 3 months ago
- Tags (freeform) deleted (
backport_processed) - Upkeep Timestamp changed from 2026-07-10T13:28:55+00:00 to 2026-08-28T01:41:58+00:00
UB Updated by Upkeep Bot about 1 month ago
- Released In set to v21.2.0~589
- Upkeep Timestamp changed from 2026-08-28T01:41:58+00:00 to 2026-10-24T02:03:21+00:00