From f766cc341cfa88fb354a1c28769cbaccfba6fbe4 Mon Sep 17 00:00:00 2001 From: Xuehan Xu Date: Sat, 7 Mar 2026 00:51:14 +0800 Subject: [PATCH] crimson/osd/pg: drop inappropriate assertions The handler of interruptions may be scheduler long after the interruptions happen, when the world may has changed completely. So the assertions about temporary states don't seem appropriate in the handlers of those interruptions. Fixes: https://tracker.ceph.com/issues/73820 Signed-off-by: Xuehan Xu --- src/crimson/osd/pg.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/crimson/osd/pg.cc b/src/crimson/osd/pg.cc index 59f5ff7c764..2bb4f5447cf 100644 --- a/src/crimson/osd/pg.cc +++ b/src/crimson/osd/pg.cc @@ -628,7 +628,6 @@ void PG::on_active_actmap() }); }, [this](std::exception_ptr eptr) { logger().debug("{}: snap trimming interrupted", *this); - ceph_assert(!peering_state.state_test(PG_STATE_SNAPTRIM)); }, pg_ref, pg_ref->get_osdmap_epoch()).finally([pg_ref, this] { publish_stats_to_osd(); }); -- 2.47.3