Project

General

Profile

Actions

Bug #79140

closed
BS BS

src/osd/PrimaryLogPG.cc: 666: FAILED ceph_assert(!get_acting_recovery_backfill().empty()) - dedup + balanced reads

Bug #79140: src/osd/PrimaryLogPG.cc: 666: FAILED ceph_assert(!get_acting_recovery_backfill().empty()) - dedup + balanced reads

Added by Bill Scales 4 months ago. Updated 4 months ago.

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

0%

Source:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
OSD
Pull request ID:
Tags (freeform):
Fixed In:
v21.3.0-2134-g094fc2f278
Released In:
Upkeep Timestamp:
2026-08-18T19:59:56+00:00

Description

/a/cjames-2026-08-03_13:42:37-rados-main-distro-default-trial/423783

Note: This is a dedup test being run with balance_reads_on - not a test that is covered by the existing QA suites.

Description: rados/thrash/{0-size-min-size-overrides/3-size-2-min-size 1-pg-log-overrides/short_pg_log 2-recovery-overrides/{more-async-recovery} 3-scrub-overrides/{max-simultaneous-scrubs-1} backoff/normal balance_reads/balance_reads_on ceph clusters/{fixed-4} crc-failures/default d-balancer/upmap-read mon_election/connectivity msgr-failures/osd-dispatch-delay msgr/async-v1only objectstore/{bluestore/{alloc$/{hybrid} base mem$/{normal-1} onode-segment$/{none} write$/{v1/{compr$/{yes$/{snappy}} v1}}}} rados supported-random-distro/{ubuntu_22.04} thrashers/pggrow_host thrashosds-health workloads/dedup-io-mixed}

2026-08-03T14:11:29.877+0000 7f3f0a109640 10 osd.0 pg_epoch: 91 pg[4.19( v 51'26 (45'23,51'26] local-lis/les=63/64 n=3 ec=55/33 lis/c=63/63 les/c/f=64/64/0 sis=63) [12,3]/[12,3,0] r=2 lpr=63 crt=51'26 lcod 0'0 active+remapped mbc={}] _handle_message: osd_op(client.4691.0:864 4.19 4.1bb6b479 (undecoded) ondisk+read+balance_reads+known_if_redirected+supports_pool_eio e91) v9
2026-08-03T14:11:29.877+0000 7f3f0a109640 20 osd.0 pg_epoch: 91 pg[4.19( v 51'26 (45'23,51'26] local-lis/les=63/64 n=3 ec=55/33 lis/c=63/63 les/c/f=64/64/0 sis=63) [12,3]/[12,3,0] r=2 lpr=63 crt=51'26 lcod 0'0 active+remapped mbc={}] do_op: op osd_op(client.4691.0:864 4.19 4:9e2d6dd8:::trial12520789-50:head [sparse-read 0~2823543] snapc 0=[] ondisk+read+balance_reads+known_if_redirected+supports_pool_eio e91)
2026-08-03T14:11:29.877+0000 7f3f0a109640 20 osd.0 pg_epoch: 91 pg[4.19( v 51'26 (45'23,51'26] local-lis/les=63/64 n=3 ec=55/33 lis/c=63/63 les/c/f=64/64/0 sis=63) [12,3]/[12,3,0] r=2 lpr=63 crt=51'26 lcod 0'0 active+remapped mbc={}] op_has_sufficient_caps session=0x56143620efc0 pool=4 (unique_pool_0 ) pool_app_metadata={rados={}} need_read_cap=1 need_write_cap=0 classes=[] -> yes
2026-08-03T14:11:29.877+0000 7f3f0a109640 10 osd.0 pg_epoch: 91 pg[4.19( v 51'26 (45'23,51'26] local-lis/les=63/64 n=3 ec=55/33 lis/c=63/63 les/c/f=64/64/0 sis=63) [12,3]/[12,3,0] r=2 lpr=63 crt=51'26 lcod 0'0 active+remapped mbc={}] do_op osd_op(client.4691.0:864 4.19 4:9e2d6dd8:::trial12520789-50:head [sparse-read 0~2823543] snapc 0=[] ondisk+read+balance_reads+known_if_redirected+supports_pool_eio e91) may_read -> read-ordered flags ondisk+read+balance_reads+known_if_redirected+supports_pool_eio
2026-08-03T14:11:29.877+0000 7f3f0a109640 20 osd.0 pg_epoch: 91 pg[4.19( v 51'26 (45'23,51'26] local-lis/les=63/64 n=3 ec=55/33 lis/c=63/63 les/c/f=64/64/0 sis=63) [12,3]/[12,3,0] r=2 lpr=63 crt=51'26 lcod 0'0 active+remapped mbc={}] PeeringState::can_serve_read can be safely read on this replica
2026-08-03T14:11:29.877+0000 7f3f0a109640 20 osd.0 pg_epoch: 91 pg[4.19( v 51'26 (45'23,51'26] local-lis/les=63/64 n=3 ec=55/33 lis/c=63/63 les/c/f=64/64/0 sis=63) [12,3]/[12,3,0] r=2 lpr=63 crt=51'26 lcod 0'0 active+remapped mbc={}] do_op_impl: serving read on oid 4:9e2d6dd8:::trial12520789-50:head
2026-08-03T14:11:29.877+0000 7f3f0a109640 10 osd.0 pg_epoch: 91 pg[4.19( v 51'26 (45'23,51'26] local-lis/les=63/64 n=3 ec=55/33 lis/c=63/63 les/c/f=64/64/0 sis=63) [12,3]/[12,3,0] r=2 lpr=63 crt=51'26 lcod 0'0 active+remapped mbc={}] get_object_context: obc NOT found in cache: 4:9e2d6dd8:::trial12520789-50:head
2026-08-03T14:11:29.877+0000 7f3f0a109640 15 bluestore(/var/lib/ceph/osd/ceph-0) getattr 4.19_head #4:9e2d6dd8:::trial12520789-50:head# _
2026-08-03T14:11:29.877+0000 7f3f0a109640 20 maybe_unpin 0x5614344b2800 #4:9e2d6dd8:::trial12520789-50:head# touched
2026-08-03T14:11:29.877+0000 7f3f0a109640 10 bluestore(/var/lib/ceph/osd/ceph-0) getattr 4.19_head #4:9e2d6dd8:::trial12520789-50:head# _ = 0
2026-08-03T14:11:29.877+0000 7f3f0a109640 15 bluestore(/var/lib/ceph/osd/ceph-0) getattr 4.19_head #4:9e2d6dd8:::trial12520789-50:head# snapset
2026-08-03T14:11:29.877+0000 7f3f0a109640 20 maybe_unpin 0x5614344b2800 #4:9e2d6dd8:::trial12520789-50:head# touched
2026-08-03T14:11:29.877+0000 7f3f0a109640 10 bluestore(/var/lib/ceph/osd/ceph-0) getattr 4.19_head #4:9e2d6dd8:::trial12520789-50:head# snapset = 0
2026-08-03T14:11:29.877+0000 7f3f0a109640 10 osd.0 pg_epoch: 91 pg[4.19( v 51'26 (45'23,51'26] local-lis/les=63/64 n=3 ec=55/33 lis/c=63/63 les/c/f=64/64/0 sis=63) [12,3]/[12,3,0] r=2 lpr=63 crt=51'26 lcod 0'0 active+remapped mbc={}] get_object_context: creating obc from disk: obc(4:9e2d6dd8:::trial12520789-50:head rwstate(none n=0 w=0))
2026-08-03T14:11:29.877+0000 7f3f0a109640 10 osd.0 pg_epoch: 91 pg[4.19( v 51'26 (45'23,51'26] local-lis/les=63/64 n=3 ec=55/33 lis/c=63/63 les/c/f=64/64/0 sis=63) [12,3]/[12,3,0] r=2 lpr=63 crt=51'26 lcod 0'0 active+remapped mbc={}] get_object_context: obc(4:9e2d6dd8:::trial12520789-50:head rwstate(none n=0 w=0)) oi: 4:9e2d6dd8:::trial12520789-50:head(51'26 client.4691.0:599 dirty|manifest s 2823543 uv 18 alloc_hint [0 0 0] manifest(chunked {233984=(len: 22016 oid: 3:0abc71a5:::trial12520789-50 low_tier:0 offset: 233984 flags: has_reference),516608=(len: 2073600 oid: 3:0abc71a5:::trial12520789-50 low_tier:0 offset: 516608 flags: has_reference),2612224=(len: 78336 oid: 3:0abc71a5:::trial12520789-50 low_tier:0 offset: 2612224 flags: has_reference)})) exists: 1 ssc(4:9e2d6dd8:::trial12520789-50:snapdir snapset: 0={} ref: 1 registered: 1 exists: 1)
2026-08-03T14:11:29.877+0000 7f3f0a109640 10 osd.0 pg_epoch: 91 pg[4.19( v 51'26 (45'23,51'26] local-lis/les=63/64 n=3 ec=55/33 lis/c=63/63 les/c/f=64/64/0 sis=63) [12,3]/[12,3,0] r=2 lpr=63 crt=51'26 lcod 0'0 active+remapped mbc={}] find_object_context 4:9e2d6dd8:::trial12520789-50:head @head oi=4:9e2d6dd8:::trial12520789-50:head(51'26 client.4691.0:599 dirty|manifest s 2823543 uv 18 alloc_hint [0 0 0] manifest(chunked {233984=(len: 22016 oid: 3:0abc71a5:::trial12520789-50 low_tier:0 offset: 233984 flags: has_reference),516608=(len: 2073600 oid: 3:0abc71a5:::trial12520789-50 low_tier:0 offset: 516608 flags: has_reference),2612224=(len: 78336 oid: 3:0abc71a5:::trial12520789-50 low_tier:0 offset: 2612224 flags: has_reference)}))
2026-08-03T14:11:29.877+0000 7f3f0a109640 -1 ./src/osd/PrimaryLogPG.cc: In function 'bool PrimaryLogPG::is_degraded_or_backfilling_object(const hobject_t&)' thread 7f3f0a109640 time 2026-08-03T14:11:29.879462+0000
2026-08-03T14:11:29.881+0000 7f3f0a109640 -1 *** Caught signal (Aborted) **

 ceph version 21.3.0-1490-g2227d156 (2227d15667cd63bac9e7e8d5a06a863b21585ac7) umbrella (dev - None)
 1: (ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x125) [0x561400fa1511]
 2: ceph-osd(+0x3dce37) [0x561400f1ae37]
 3: (PrimaryLogPG::maybe_handle_manifest_detail(boost::intrusive_ptr<OpRequest>, bool, std::shared_ptr<ObjectContext>)+0x613) [0x56140122bfe3]
 4: ceph-osd(+0x6caffd) [0x561401208ffd]
 5: (PrimaryLogPG::do_op_impl(boost::intrusive_ptr<OpRequest>)+0x2ff8) [0x561401227b68]
 6: (PrimaryLogPG::do_op(boost::intrusive_ptr<OpRequest>&)+0x6fd) [0x56140122975d]
 7: (OSD::dequeue_op(boost::intrusive_ptr<PG>, boost::intrusive_ptr<OpRequest>, ThreadPool::TPHandle&)+0x1a7) [0x561401171e37]
 8: (ceph::osd::scheduler::PGOpItem::run(OSD*, OSDShard*, boost::intrusive_ptr<PG>&, ThreadPool::TPHandle&)+0x69) [0x5614013dae89]
 9: (OSD::ShardedOpWQ::_process(unsigned int, unsigned int, ceph::heartbeat_handle_d*)+0x7ce) [0x56140117c23e]
 10: (ShardedThreadPool::shardedthreadpool_worker(unsigned int, unsigned int)+0x326) [0x561401714c26]
 11: ceph-osd(+0xbafdc7) [0x5614016eddc7]
 12: /lib/x86_64-linux-gnu/libc.so.6(+0x94ac3) [0x7f3f2625bac3]
 13: /lib/x86_64-linux-gnu/libc.so.6(+0x1268d0) [0x7f3f262ed8d0]

Problem is that maybe_handle_manifest_detail (handles dedup) is calling is_degraded_or_backfilling_object for a read request submitted to a non-primary.

BS Updated by Bill Scales 4 months ago Actions #1

  • Subject changed from src/osd/PrimaryLogPG.cc: 666: FAILED ceph_assert(!get_acting_recovery_backfill().empty()) - dedup + balanced reds to src/osd/PrimaryLogPG.cc: 666: FAILED ceph_assert(!get_acting_recovery_backfill().empty()) - dedup + balanced reads

Will code a fix that simply rejects balanced reads to replica shards for objects with dedup chunks with EAGAIN to redirect the request to the primary.

With regards to performance this isn't an optimal fix, it would be slightly better to disable balanced/localized reads completely for pools with dedup at Objecter or even better to fix the dedup code so that it doesn't need to block for degraded objects for read I/Os (reads should only need to block for unreadable objects not degraded objects). However as dedup is a highly experimental feature and needs a lot more work to complete I think a simple fix should be sufficient and that it is preferable to put the fix in and get good test coverage in QA rather than try and restrict the testing of dedup.

BS Updated by Bill Scales 4 months ago Actions #2

  • Pull request ID set to 70908

RZ Updated by Radoslaw Zarzynski 4 months ago Actions #3

Sent to QA.

LF Updated by Laura Flores 4 months ago Actions #4

  • Status changed from New to Fix Under Review

LF Updated by Laura Flores 4 months ago Actions #5

  • Status changed from Fix Under Review to Resolved

@Bill Scales does this need backporting?

UB Updated by Upkeep Bot 4 months ago Actions #6

  • Merge Commit set to 094fc2f278b1bffd3c765f5003edade5df6452bc
  • Fixed In set to v21.3.0-2134-g094fc2f278
  • Upkeep Timestamp set to 2026-08-18T19:59:56+00:00

BS Updated by Bill Scales 4 months ago Actions #7

Not going to backport this - dedupe is an experimental feature.

It is however tested in QA runs, but currently without balanced reads enabled. We want to enable more wide spread testing of balanced reads in QA (so need this fix), but are not planning to backport this change to earlier releases so don't need this fix there.

Actions

Also available in: PDF Atom