]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
rbd-mirror: remove callout when destroying pool replayer
authorIlya Dryomov <idryomov@gmail.com>
Wed, 24 Apr 2024 10:45:27 +0000 (12:45 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Sun, 5 May 2024 19:11:54 +0000 (21:11 +0200)
commitb7e79642d53c1802ae1202c3f013677fcfd26b1b
tree2825d5b3a2108036694c6a3df6b92a3d711993c9
parentdef93cb0ad93e3e27d7c4534f68c95ef922ab750
rbd-mirror: remove callout when destroying pool replayer

If a pool replayer is removed in an error state (e.g. after failing to
connect to the remote cluster), its callout should be removed as well.
Otherwise, the error would persist causing "daemon health: ERROR"
status to be reported even after a new pool replayer is created and
started successfully.

Fixes: https://tracker.ceph.com/issues/65487
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
qa/workunits/rbd/rbd_mirror_bootstrap.sh
qa/workunits/rbd/rbd_mirror_helpers.sh
src/test/rbd_mirror/test_mock_PoolReplayer.cc
src/tools/rbd_mirror/PoolReplayer.cc