]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/scrub: introduce a 'not before' attribute for scrub jobs
authorRonen Friedman <rfriedma@redhat.com>
Sun, 31 Dec 2023 16:18:09 +0000 (10:18 -0600)
committerRonen Friedman <rfriedma@redhat.com>
Mon, 22 Jan 2024 13:25:25 +0000 (07:25 -0600)
commitd294ea80cc018dc3f893fcb2c4df9a1ad8bb6a04
tree4b3533266a9e8206b72e3f71a571644cfd0fc08e
parente60c698338510e4939f201de6fed4f569ea9ad01
osd/scrub: introduce a 'not before' attribute for scrub jobs

The NB enables the OSD to delay the next attempt to schedule a specific
scrub job.  This is useful for jobs that have failed for whatever
reason, especially if the primary has failed to acquire the replicas.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/osd/scrubber/osd_scrub.cc
src/osd/scrubber/osd_scrub.h
src/osd/scrubber/osd_scrub_sched.cc
src/osd/scrubber/osd_scrub_sched.h
src/osd/scrubber/pg_scrubber.cc
src/osd/scrubber/scrub_job.cc
src/osd/scrubber/scrub_job.h