]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd-mirror: avoid stuck group on secondary
authorPrasanna Kumar Kalever <prasanna.kalever@redhat.com>
Thu, 6 Mar 2025 07:19:15 +0000 (12:49 +0530)
committerPrasanna Kumar Kalever <prasanna.kalever@redhat.com>
Thu, 24 Apr 2025 15:56:32 +0000 (21:26 +0530)
commit5c1297faefdb2502fbadc0e5b608ca2208d7d1bf
tree3939d32f27b0f7260972c1e9937e00533436ca18
parent925985d5a64697dcc0a95af68650677e57ee4daa
rbd-mirror: avoid stuck group on secondary

The following steps leaves stale group on seondary left undeleted,
1. Create and mirror enable a group with 2 images.
2. Let it sync to the secondary
3. Demote on the primary and promote on the secondary
4. Wait until it starts replaying on the original primary
5. Delete the group on the new primary

Credits to Nithya Balachandran for highlighting the issue with detailed steps.

Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
src/tools/rbd_mirror/group_replayer/Replayer.cc