]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test/rbd-mirror: eliminate a race in ResyncRequestedRemoteNotPrimary 64757/head
authorVinayBhaskar-V <vvarada@redhat.com>
Wed, 30 Jul 2025 10:10:27 +0000 (10:10 +0000)
committerVinayBhaskar-V <vvarada@redhat.com>
Wed, 30 Jul 2025 13:15:17 +0000 (13:15 +0000)
commitb5a013f6170bb4445da8f5469243e4869b760a81
treedfe3c18e8f00381be9f82a0bc5efdc51d6cfb4c6
parentab6fb9f5cf41ebea429e439c7f06f40bc6b31705
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>
src/test/rbd_mirror/image_replayer/snapshot/test_mock_Replayer.cc