]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test/rbd-mirror: eliminate a race in ResyncRequestedRemoteNotPrimary 64740/head
authorVinayBhaskar-V <vvarada@redhat.com>
Wed, 30 Jul 2025 10:10:27 +0000 (10:10 +0000)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 1 Aug 2025 10:47:16 +0000 (12:47 +0200)
commitfb8ade526e4dd9c2311141a203b0e855a0224a02
treed1b20a1722774f94f26a34ecc77471f2d7c22c77
parent23d15f270acd192fe8aa76918558316a57594ad9
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