Fix ScrubJob::observes_allowed_hours() to not block 'repairing'
scrubs outside of the allowed hours. This allows repair scrubs
to run at any time or day-of-week.
The fixed behaviour matches the documented requirements.
Fixes: https://tracker.ceph.com/issues/76811
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
(cherry picked from commit
4ac5a3210ae55e33466ca867a8c1c4b5b0a18c64)
CONFLICT (content): Merge conflict in src/osd/scrubber/scrub_job.h
Resolved manually (comment lines only)
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
bool ScrubJob::observes_allowed_hours(urgency_t urgency)
{
- return urgency < urgency_t::operator_requested;
+ return urgency < urgency_t::repairing;
}
bool ScrubJob::observes_extended_sleep(urgency_t urgency)
* | limitation | must- | after-repair |repairing| operator | must-repair |
* | | scrub |(aft recovery)|(errors) | request | |
* +------------+---------+--------------+---------+----------+-------------+
- * | reservation| yes! | no | no? | no | no |
- * | dow/time | yes | yes | no | no | no |
+ * | reservation| yes | no | no | no | no |
+ * | dow/time | yes | yes | no | no | no |
* | ext-sleep | no | no | no | no | no |
* | load | yes | no | no | no | no |
* | noscrub | yes | no | Yes | no | no |