]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/scrub: operator abort: (not) handling in-the-mail scrubs 66515/head
authorRonen Friedman <rfriedma@redhat.com>
Mon, 8 Dec 2025 15:09:30 +0000 (09:09 -0600)
committerRonen Friedman <rfriedma@redhat.com>
Tue, 20 Jan 2026 16:40:03 +0000 (16:40 +0000)
commit8c409a8dd091b5ea391d8119ecc04088f4c80c8e
tree4cf195cd976c8ddbf38debfda2df3b25b1573c26
parent0884eec3cae7ac7d81e0dce6b12526262c12047e
osd/scrub: operator abort: (not) handling in-the-mail scrubs

Fix on_operator_abort_scrub() to handle the case where
the operator-initiated abort request arrives while the
'start scrub' message is still in the queue (i.e. -
is_queued_or_active() is true, but is_scrub_active()
is false).

Unlike our handling of, for example, FullReset in
PrimaryIdle::clear_state(), here we choose to ignore
the request:
Considering the added complexity to the FSM versus
the minimal benefit, it is better to just ignore this
very rare case, leaving it to the operator to re-issue
the abort command if needed.

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