]> git.apps.os.sepia.ceph.com Git - ceph.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>
Tue, 7 May 2024 08:01:27 +0000 (10:01 +0200)
commitfacd729fbca38a70fb0ff772fa94d0b9e74fc174
tree4174ba4959113ecd0905e4c5d4110551d9a58727
parent615f10479d62c2e5dabe92000d245f2702aafc62
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>
(cherry picked from commit b7e79642d53c1802ae1202c3f013677fcfd26b1b)
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