]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/scrub: handle 'release' events sent during 'scrub abort'
authorRonen Friedman <rfriedma@redhat.com>
Mon, 11 Mar 2024 17:54:01 +0000 (12:54 -0500)
committerRonen Friedman <rfriedma@redhat.com>
Tue, 9 Apr 2024 10:59:44 +0000 (05:59 -0500)
commitfaef7ca599b6d3b7fdef92554cf5f4b399df4e3e
tree2bbc39feca7764502bb646be4894fa0a27763f64
parentfa03adc0783eee46986812737a7e25129eab7dad
osd/scrub: handle 'release' events sent during 'scrub abort'

Scenario:
- the replica is reserved;
- the Primary initiates a chunk operation;
- the replica is in ReplicaActive/ReplicaActiveOp/ReplicaBuildingMap
- 'no-scrub' is set, and the Primary sends a 'release' event to the
  replica.

Desired behavior:
- the replica aborts the chunk operation and transitions to
  ReplicaReserved;
- the 'release' event is delivered in the new state.

Fixes: https://tracker.ceph.com/issues/64827
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
(cherry picked from commit 0f0c3936689483b09c350f833087f06f00b19449)
src/osd/scrubber/scrub_machine.cc
src/osd/scrubber/scrub_machine.h