]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd: stop scrub_purged_snaps() from ignoring osd_beacon_report_interval
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 5 Aug 2025 14:11:59 +0000 (16:11 +0200)
committerPrashant D <pdhange@redhat.com>
Wed, 10 Sep 2025 18:00:44 +0000 (14:00 -0400)
commit814b2766f4e696d38aab9b194ef445e1388e0529
treed9469b5829d91c35ec35af274581bb5f3aeee686
parentdfd7cf1abc2cc6b41efa889b216c51ae189eb03b
osd: stop scrub_purged_snaps() from ignoring osd_beacon_report_interval

OSD beacons could be burdersome to the enitre cluster, as they lead
to generation of new `OSDMap` epochs. Therefore their frequency is
restricted through `osd_beacon_report_interval` to 5 mins by default.

Unfortunately, the `OSD::send_purged_snaps()` is unaware about this
policy with the net result being storm of OSDMaps. This patch unifies
its behavior with `OSD::tick_without_osd_lock()`.

Fixes: https://tracker.ceph.com/issues/72412
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
(cherry picked from commit d4f90ea6d3c5c565d1ddc6f9ecd9499048f054c0)
src/osd/OSD.cc
src/osd/OSD.h