From: Kefu Chai Date: Thu, 8 Aug 2019 04:24:53 +0000 (+0800) Subject: mgr/telemetry: clear the event after being awaken by it X-Git-Tag: v12.2.13~15^2~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e5731abc21bc517d00288a05447e7476e32f2175;p=ceph.git mgr/telemetry: clear the event after being awaken by it otherwise telemetry will have a busy-loop once it's signaled. Signed-off-by: Kefu Chai (cherry picked from commit 0dddb20685007d990dc30daddca6212d36e5e308) --- diff --git a/src/pybind/mgr/telemetry/module.py b/src/pybind/mgr/telemetry/module.py index d68974a01ba..9fbf3c7ed8f 100644 --- a/src/pybind/mgr/telemetry/module.py +++ b/src/pybind/mgr/telemetry/module.py @@ -436,6 +436,8 @@ class Module(MgrModule): self.event.wait(10) while self.run: + self.event.clear() + self.refresh_health_checks() if self.last_opt_revision < LAST_REVISION_RE_OPT_IN: