]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd/pg: drop inappropriate assertions 67697/head
authorXuehan Xu <xuxuehan@qianxin.com>
Fri, 6 Mar 2026 16:51:14 +0000 (00:51 +0800)
committerXuehan Xu <xuxuehan@qianxin.com>
Fri, 6 Mar 2026 16:51:14 +0000 (00:51 +0800)
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 <xuxuehan@qianxin.com>
src/crimson/osd/pg.cc

index 59f5ff7c764ec49d31921fea03f234c394bda909..2bb4f5447cf13bb4b0b2582aa9b5d4bb3e8c1ce5 100644 (file)
@@ -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();
     });