Project

General

Profile

Actions

Bug #76550

closed
MB RF

Got abort after scrubber/kick_snap_trim

Bug #76550: Got abort after scrubber/kick_snap_trim

Added by Matan Breizman 7 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
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:
v21.0.0-1626-gc966086b57
Released In:
v21.2.0~401
Upkeep Timestamp:
2026-10-24T01:45:28+00:00

Description

https://pulpito.ceph.com/matan-2026-05-12_13:03:47-crimson-rados-wip-matanb-testing-may12-distro-debug-trial/210257

osd.1:

DEBUG 2026-05-12 13:25:13,380 [shard 4:main] osd -  pg_epoch 47 pg[2.3( v 13'1 (0'0,13'1] local-lis/les=46/47 n=1 ec=12/12 lis/c=46/46 les/c/f=47/47/0 sis=46) [1,2] r=0 lpr=46 crt=13'1 lcod 0'0 mlcod 0'0 active+clean PeeringState::prepare_stats_for_publish reporting purged_snaps []
DEBUG 2026-05-12 13:25:13,380 [shard 4:main] osd -  pg_epoch 47 pg[2.3( v 13'1 (0'0,13'1] local-lis/les=46/47 n=1 ec=12/12 lis/c=46/46 les/c/f=47/47/0 sis=46) [1,2] r=0 lpr=46 crt=13'1 lcod 0'0 mlcod 0'0 active+clean PeeringState::prepare_stats_for_publish publish_stats_to_osd 47:43
INFO  2026-05-12 13:25:13,380 [shard 4:main] osd -  pg_epoch 47 pg[2.3( v 13'1 (0'0,13'1] local-lis/les=46/47 n=1 ec=12/12 lis/c=46/46 les/c/f=47/47/0 sis=46) [1,2] r=0 lpr=46 crt=13'1 lcod 0'0 mlcod 0'0 active+clean : scrub complete, retriggering snap trim
DEBUG 2026-05-12 13:25:13,380 [shard 4:main] osd -  pg_epoch 47 pg[2.3( v 13'1 (0'0,13'1] local-lis/les=46/47 n=1 ec=12/12 lis/c=46/46 les/c/f=47/47/0 sis=46) [1,2] r=0 lpr=46 crt=13'1 lcod 0'0 mlcod 0'0 active+clean : on_active_actmap snap_trimq=[2~1]
ERROR 2026-05-12 13:25:13,380 [shard 4:main] osd - Aborting Got SIGABRT on shard 4 - Stopping all shards

Backtrace:
  0# 0x00007FEC75469000 in /lib64/libc.so.6
 1# 0x00007FEC754BEF8C in /lib64/libc.so.6
 2# gsignal in /lib64/libc.so.6
 3# abort in /lib64/libc.so.6
 4# 0x00007FEC7545081E in /lib64/libc.so.6
 5# 0x00007FEC754614B6 in /lib64/libc.so.6
 6# crimson::interruptible::interrupt_cond_t<crimson::osd::IOInterruptCondition>::set(seastar::lw_shared_ptr<crimson::osd::IOInterruptCondition>&) at :?
 7# auto crimson::interruptible::internal::call_with_interruption_impl<crimson::osd::IOInterruptCondition, crimson::osd::PG::on_active_actmap()::{lambda()#1}>(seastar::lw_shared_ptr<crimson::osd::IOInterruptCondition>, crimson::osd::PG::on_active_actmap()::{lambda()#1}&&) at :?
 8# auto crimson::interruptible::interruptor<crimson::osd::IOInterruptCondition>::with_interruption_cond<crimson::osd::PG::on_active_actmap()::{lambda()#1}, crimson::osd::PG::on_active_actmap()::{lambda(std::__exception_ptr::exception_ptr)#1}>(crimson::osd::PG::on_active_actmap()::{lambda()#1}&&, crimson::osd::PG::on_active_actmap()::{lambda(std::__exception_ptr::exception_ptr)#1}&&, crimson::osd::IOInterruptCondition&&) at :?
 9# auto crimson::interruptible::interruptor<crimson::osd::IOInterruptCondition>::with_interruption<crimson::osd::PG::on_active_actmap()::{lambda()#1}, crimson::osd::PG::on_active_actmap()::{lambda(std::__exception_ptr::exception_ptr)#1}, boost::intrusive_ptr<crimson::osd::PG>&, unsigned int>(crimson::osd::PG::on_active_actmap()::{lambda()#1}&&, crimson::osd::PG::on_active_actmap()::{lambda(std::__exception_ptr::exception_ptr)#1}&&, boost::intrusive_ptr<crimson::osd::PG>&, unsigned int&&) at :?
10# crimson::osd::PG::on_active_actmap() in ceph-osd
11# crimson::osd::PG::kick_snap_trim() in ceph-osd
12# crimson::osd::scrub::PGScrubber::notify_scrub_end(bool) at :?
13# crimson::osd::scrub::Scrubbing::exit() at :?


Related issues 1 (0 open — 1 closed)

Related to crimson - Bug #71786: Assertion `interrupt_cond.get() == ic.get()' failedResolvedRonen Friedman

Actions

MB Updated by Matan Breizman 7 months ago Actions #1

  • Assignee set to Ronen Friedman

Hey @Ronen Friedman, this look similar to the issue you were looking into last week? Does this look familiar perhaps? Thanks!

RF Updated by Ronen Friedman 7 months ago Actions #2

Taking a look

RF Updated by Ronen Friedman 7 months ago Actions #3

This seems like a bug in my previous 'one-way' trim-scrub exclusion PR:
Root cause: An assertion failure in crimson::interruptible::interrupt_cond_t::set() at src/crimson/common/interruptible_future.h:110:

Assertion `interrupt_cond.get() == ic.get()` failed.
What happened:

OSD 1 (shard 4) hit the assertion first at 13:25:13.380. The call chain was:

ScanRange::react(scan_range_complete_t) — scrub scan completed
State machine transits from ScanRange back to PrimaryActive
During transit, Scrubbing::exit() calls PGScrubber::notify_scrub_end()
Which calls PG::kick_snap_trim() → PG::on_active_actmap()
on_active_actmap() calls interruptor::with_interruption(), which calls interrupt_cond_t::set()
The assertion fires because the interrupt condition pointer doesn't match — likely a re-entrant or nested with_interruption call where the existing interrupt condition on the current shard differs from the one being set.
OSD 2 (shard 0) hit the identical assertion at 13:25:13.796, same path through scrub completion → on_active_actmap.

In short: The scrub state machine's ScanRange completion handler triggers snap trim via on_active_actmap(), which tries to set up an interrupt condition that conflicts with an already-active one on the same shard. This is a bug in the scrub → snap-trim interaction in the crimson OSD.

MB Updated by Matan Breizman 7 months ago Actions #5

  • Related to Bug #71786: Assertion `interrupt_cond.get() == ic.get()' failed added

RF Updated by Ronen Friedman 7 months ago Actions #6

  • Status changed from Need More Info to Fix Under Review
  • Pull request ID set to 68984

RF Updated by Ronen Friedman 6 months ago Actions #7

  • Pull request ID changed from 68984 to 68948

Corrected the typo in the fix PR: 68948

RF Updated by Ronen Friedman 6 months ago Actions #8

  • Status changed from Fix Under Review to Resolved

UB Updated by Upkeep Bot 6 months ago Actions #9

  • Merge Commit set to c966086b5791df50721948a9468509fc23bd9229
  • Fixed In set to v21.0.0-1626-gc966086b57
  • Upkeep Timestamp set to 2026-06-04T13:41:51+00:00

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

  • Released In set to v21.2.0~401
  • Upkeep Timestamp changed from 2026-06-04T13:41:51+00:00 to 2026-10-24T01:45:28+00:00
Actions

Also available in: PDF Atom