]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/scrub: 'repairing' scrubs allowed at all times
authorRonen Friedman <rfriedma@redhat.com>
Tue, 26 May 2026 15:29:32 +0000 (15:29 +0000)
committerRonen Friedman <rfriedma@redhat.com>
Wed, 3 Jun 2026 13:43:51 +0000 (13:43 +0000)
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>
src/osd/scrubber/scrub_job.cc
src/osd/scrubber/scrub_job.h

index 81f45ffca804d4735583d39d590a1274b1d8e771..e4f34713bce8a4aa79b83f65c7b9859f2dfa6e13 100644 (file)
@@ -371,7 +371,7 @@ bool ScrubJob::observes_noscrub_flags(urgency_t urgency)
 
 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)
index 3aef5a874a48a93a25e757531cad560017026db4..b1d3d9c1904d5a38e0207ab4863be3144e904959 100644 (file)
@@ -336,8 +336,8 @@ class ScrubJob {
  *  | 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     |