]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
pacific: osd/scrub: Fix scrub starts messages spamming the cluster log 53430/head
authorPrashant D <pdhange@redhat.com>
Tue, 12 Sep 2023 18:58:23 +0000 (14:58 -0400)
committerPrashant D <pdhange@redhat.com>
Tue, 12 Sep 2023 18:58:23 +0000 (14:58 -0400)
commite76d5e90c3a99303034986eb41a26e050e8ba75f
tree1319d36ea45717cf07b8cf75626f06ae659de27f
parent0171fc0d04032e63cb85b2b5f4d8b080198e5430
pacific: osd/scrub: Fix scrub starts messages spamming the cluster log

With the re-introduction of scrub starts message in commit-id e0c0b4f,
the cluster log is getting spammed by scrub *starts* for the same
PG. This is due to replicas rejecting the scrub reserve requests
resulting in scrub getting rescheduled for the same PG continuously.
Instead of logging the scrub *starts* message before scrub reservation
is done by all acting set OSDs, log *starts* message when active
scrubbing starts for the PG. The reservations period is expected
to take up to a few milliseconds and the scrubbing itself consumes the
most of the scrub period.

Fixes: https://tracker.ceph.com/issues/62669
Signed-off-by: Prashant D <pdhange@redhat.com>
src/osd/scrub_machine.cc