]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/rbd-mirror: eliminate a race in ResyncRequestedRemoteNotPrimary 64739/head
authorVinayBhaskar-V <vvarada@redhat.com>
Wed, 30 Jul 2025 10:10:27 +0000 (10:10 +0000)
committerVinayBhaskar-V <vvarada@redhat.com>
Tue, 23 Sep 2025 07:16:02 +0000 (07:16 +0000)
commit6ee6ab764ebcdc1c695c41c8c2d04d7b5574049b
tree69108ef4137b878cf4eaefcd6e9f812ad4a7959f
parente1fd62e8b7851741721d72ac9b363a4e2ab1b90f
test/rbd-mirror: eliminate a race in ResyncRequestedRemoteNotPrimary

Adjust the wait_for_notification call in TestMockImageReplayerSnapshotReplayer.ResyncRequestedRemoteNotPrimary
to expect 2 notifications instead of 1. This allows the test to correctly wait for both expected events
i.e for finish_sync() and handle_replay_complete(locker, -EREMOTEIO, "remote image demoted"), ensuring the
replayer transitions to STATE_COMPLETE and is_replaying() returns false as intended.

Fixes: https://tracker.ceph.com/issues/72325
Signed-off-by: VinayBhaskar-V <vvarada@redhat.com>
(cherry picked from commit b5a013f6170bb4445da8f5469243e4869b760a81)
src/test/rbd_mirror/image_replayer/snapshot/test_mock_Replayer.cc