From: Wei Wang Date: Mon, 29 Jan 2024 08:26:24 +0000 (+0000) Subject: mon: fix health store size growing infinitely X-Git-Tag: v17.2.8~448^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F55549%2Fhead;p=ceph.git mon: fix health store size growing infinitely The `check_mutes` wrongly marks `changed` to true, trigger `propose_pending` and block following `maybe_trim` logic (`have_pending` will be always be false); as a result, the health store will never be trimmed. Signed-off-by: Wei Wang (cherry picked from commit 05a85848a01c443d67564a9904a778acfe19cee5) --- diff --git a/src/mon/HealthMonitor.cc b/src/mon/HealthMonitor.cc index 6eed2b0f05bc..0c42734ef481 100644 --- a/src/mon/HealthMonitor.cc +++ b/src/mon/HealthMonitor.cc @@ -400,7 +400,7 @@ void HealthMonitor::tick() bool HealthMonitor::check_mutes() { - bool changed = true; + bool changed = false; auto now = ceph_clock_now(); health_check_map_t all; gather_all_health_checks(&all);