Bug #73248
closedosd/PGLog.h: FAILED ceph_assert(missing.is_missing(hoid) && missing.get_items().at(hoid).need >= objiter->second->version)
0%
Description
description: rados/thrash-erasure-code-isa/{arch/x86_64 ceph clusters/{fixed-4} ec_optimizations/ec_optimizations_on
mon_election/connectivity msgr-failures/osd-dispatch-delay objectstore/{bluestore/{alloc$/{stupid}
base mem$/{normal-2} onode-segment$/{512K} write$/{v1/{compr$/{no$/{no}} v1}}}}
rados recovery-overrides/{more-async-partial-recovery} supported-random-distro$/{ubuntu_latest}
thrashers/careful_host thrashosds-health workloads/ec-rados-plugin=isa-k=8-m=6-technique=cauchy}
/a/skanta-2025-09-18_23:59:11-rados-wip-bharath4-testing-2025-09-18-1250-distro-default-smithi/8510823
2025-09-19T13:33:31.854 INFO:tasks.ceph.osd.2.smithi152.stderr:./src/osd/PGLog.h: In function 'static void PGLog::_merge_object_divergent_entries(const PGLog::IndexedLog&, const hobject_t&, mempool::osd_pglog::list<pg_log_entry_t>&, const pg_info_t&, eversion_t, missing_type&, PGLog::LogEntryHandler*, bool, const DoutPrefixProvider*) [with missing_type = pg_missing_set<true>; mempool::osd_pglog::list<pg_log_entry_t> = std::__cxx11::list<pg_log_entry_t, mempool::pool_allocator<mempool::mempool_osd_pglog, pg_log_entry_t> >]' thread 7f140b537640 time 2025-09-19T13:33:31.851685+0000 2025-09-19T13:33:31.854 INFO:tasks.ceph.osd.2.smithi152.stderr:./src/osd/PGLog.h: 1189: FAILED ceph_assert(missing.is_missing(hoid) && missing.get_items().at(hoid).need >= objiter->second->version) 2025-09-19T13:33:31.861 INFO:tasks.ceph.osd.2.smithi152.stderr: ceph version 20.3.0-3108-g6dea9c58 (6dea9c58ff311ecb2cc9b2de3914252d1dba74c9) tentacle (dev - None) 2025-09-19T13:33:31.861 INFO:tasks.ceph.osd.2.smithi152.stderr: 1: (ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x123) [0x555e91f1c166] 2025-09-19T13:33:31.861 INFO:tasks.ceph.osd.2.smithi152.stderr: 2: ceph-osd(+0x3dc0c6) [0x555e91e980c6] 2025-09-19T13:33:31.861 INFO:tasks.ceph.osd.2.smithi152.stderr: 3: (PGLog::merge_log(pg_info_t&, pg_log_t&&, pg_shard_t, pg_info_t&, pg_pool_t const&, pg_shard_t, PGLog::LogEntryHandler*, bool&, bool&, bool)+0x91b) [0x555e9215d36b] 2025-09-19T13:33:31.861 INFO:tasks.ceph.osd.2.smithi152.stderr: 4: (PeeringState::merge_log(ceph::os::Transaction&, pg_info_t&, pg_log_t&&, pg_shard_t)+0xc7) [0x555e92361f17] 2025-09-19T13:33:31.861 INFO:tasks.ceph.osd.2.smithi152.stderr: 5: (PeeringState::Stray::react(MLogRec const&)+0x1a2) [0x555e92395172] 2025-09-19T13:33:31.861 INFO:tasks.ceph.osd.2.smithi152.stderr: 6: ceph-osd(+0x9010a1) [0x555e923bd0a1] 2025-09-19T13:33:31.862 INFO:tasks.ceph.osd.2.smithi152.stderr: 7: (PG::do_peering_event(std::shared_ptr<PGPeeringEvent>, PeeringCtx&)+0x1a6) [0x555e92132b66] 2025-09-19T13:33:31.862 INFO:tasks.ceph.osd.2.smithi152.stderr: 8: (OSD::dequeue_peering_evt(OSDShard*, PG*, std::shared_ptr<PGPeeringEvent>, ThreadPool::TPHandle&)+0x2ae) [0x555e920d594e] 2025-09-19T13:33:31.862 INFO:tasks.ceph.osd.2.smithi152.stderr: 9: (ceph::osd::scheduler::PGPeeringItem::run(OSD*, OSDShard*, boost::intrusive_ptr<PG>&, ThreadPool::TPHandle&)+0x51) [0x555e92339901] 2025-09-19T13:33:31.862 INFO:tasks.ceph.osd.2.smithi152.stderr: 10: (OSD::ShardedOpWQ::_process(unsigned int, ceph::heartbeat_handle_d*)+0xa76) [0x555e920f5186] 2025-09-19T13:33:31.862 INFO:tasks.ceph.osd.2.smithi152.stderr: 11: (ShardedThreadPool::shardedthreadpool_worker(unsigned int)+0x292) [0x555e9263d362] 2025-09-19T13:33:31.862 INFO:tasks.ceph.osd.2.smithi152.stderr: 12: ceph-osd(+0xb818d4) [0x555e9263d8d4] 2025-09-19T13:33:31.862 INFO:tasks.ceph.osd.2.smithi152.stderr: 13: /lib/x86_64-linux-gnu/libc.so.6(+0x94ac3) [0x7f142cebdac3] 2025-09-19T13:33:31.862 INFO:tasks.ceph.osd.2.smithi152.stderr: 14: /lib/x86_64-linux-gnu/libc.so.6(+0x126850) [0x7f142cf4f850]
LF Updated by Laura Flores about 1 year ago
- Assignee set to Bill Scales
BS Updated by Bill Scales about 1 year ago
- Assignee changed from Bill Scales to Alex Ainscow
AA Updated by Alex Ainscow about 1 year ago
This looks to be a regression caused by FastEC.
The scenario is as follows:
1. A clone operation is started on the primary.
2. The clone operation is completed on a non-primary shard X, OSD (Y), but the transaction is not committed by the primary.
3. OSD Y goes down or is otherwise removed from the PG.
4. The clone is rolled back
5. No writes are performed to the cloned object that will cause a write to the shard X (This will very likely include a repeat of the clone!)
6. OSD Y returns to the PG, as shar
The problem is that the clone operation comprises two log entries:
1. Do the clone - this creates and writes a new object - this affects all OSDs for the target object only.
2. Update the OI and snapshot on the clone source - this does NOT perform any transactions on the non-primary OSDs.
Unusually, the second log entry here gets added to the log on OSD Y, despite not writing to it. The upshot is that rolling back the clone is a no-op and that the op does NOT get added to the missing list. However, when the rollback is processed, the code is incorrectly asserting that the object IS in the missing list.
AA Updated by Alex Ainscow about 1 year ago
- Status changed from New to In Progress
- Priority changed from Normal to High
- Source set to Development
- Affected Versions v20.0.0, v21.0.0 added
I think this is rare, but is a must fix and we need to backport the fix to tentacle.
Its not a recent regression, so we should not block the PR associated with this tracker.
LF Updated by Laura Flores about 1 year ago
- Backport set to tentacle
LF Updated by Laura Flores about 1 year ago ยท Edited
Running 15x of the same test to help determine repeatability: http://pulpito.ceph.com/lflores-2025-09-25_19:16:31-rados-wip-bharath4-testing-2025-09-18-1250-distro-default-smithi/
./teuthology/virtualenv/bin/teuthology-suite -v -m smithi -c wip-bharath4-testing-2025-09-18-1250 -r skanta-2025-09-18_23:59:11-rados-wip-bharath4-testing-2025-09-18-1250-distro-default-smithi -p 60 -N 15 --filter-all "rados/thrash-erasure-code-isa/{arch/x86_64 ceph clusters/{fixed-4} ec_optimizations/ec_optimizations_on mon_election/connectivity msgr-failures/osd-dispatch-delay objectstore/{bluestore/{alloc$/{stupid} base mem$/{normal-2} onode-segment$/{512K} write$/{v1/{compr$/{no$/{no}} v1}}}} rados recovery-overrides/{more-async-partial-recovery} supported-random-distro$/{ubuntu_latest} thrashers/careful_host thrashosds-health workloads/ec-rados-plugin=isa-k=8-m=6-technique=cauchy}"
RZ Updated by Radoslaw Zarzynski about 1 year ago
@Alex Ainscow: is the fix just a matter of being more precise in the assert's condition?
AA Updated by Alex Ainscow about 1 year ago
- Status changed from In Progress to Pending Backport
UB Updated by Upkeep Bot about 1 year ago
- Copied to Backport #73449: tentacle: osd/PGLog.h: FAILED ceph_assert(missing.is_missing(hoid) && missing.get_items().at(hoid).need >= objiter->second->version) added
UB Updated by Upkeep Bot about 1 year ago
- Tags (freeform) set to backport_processed
AA Updated by Alex Ainscow about 1 year ago
- Pull request ID set to 65770
UB Updated by Upkeep Bot about 1 year ago
- Merge Commit set to 73ef7db17220fdb9038035bcebc7c48c182508bb
- Fixed In set to v20.3.0-3771-g73ef7db172
- Upkeep Timestamp set to 2025-10-23T13:16:54+00:00
UB Updated by Upkeep Bot 3 months ago
- Tags (freeform) deleted (
backport_processed) - Upkeep Timestamp changed from 2025-10-23T13:16:54+00:00 to 2026-08-28T01:34:33+00:00
UB Updated by Upkeep Bot about 1 month ago
- Released In set to v21.2.0~1797
- Upkeep Timestamp changed from 2026-08-28T01:34:33+00:00 to 2026-10-24T01:59:17+00:00