]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/scrub: handle 'release' events sent during 'scrub abort' 56132/head
authorRonen Friedman <rfriedma@redhat.com>
Mon, 11 Mar 2024 17:54:01 +0000 (12:54 -0500)
committerRonen Friedman <rfriedma@redhat.com>
Tue, 12 Mar 2024 13:53:05 +0000 (08:53 -0500)
commit0f0c3936689483b09c350f833087f06f00b19449
tree88bfb2015443540f8c97b93381b70673ad7eb9fc
parent39899e413f8f9f0b6f01c9152790bd56b85e2045
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>
src/osd/scrubber/scrub_machine.cc
src/osd/scrubber/scrub_machine.h