From: Xuehan Xu Date: Fri, 6 Mar 2026 16:51:14 +0000 (+0800) Subject: crimson/osd/pg: drop inappropriate assertions X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f766cc341cfa88fb354a1c28769cbaccfba6fbe4;p=ceph.git 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 --- 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(); });