]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/librbd: unquiesce notifications are handled lazily 36395/head
authorJason Dillaman <dillaman@redhat.com>
Fri, 31 Jul 2020 14:31:07 +0000 (10:31 -0400)
committerJason Dillaman <dillaman@redhat.com>
Fri, 31 Jul 2020 17:08:41 +0000 (13:08 -0400)
commitf67930b1cebbd358674763c0b9c0f7c43de17eff
treeef2fb51ebc5682d90df0d154dc818ffc7a1ba3a2
parentec472b7b56eb5ed6ec52aa0bc4c2d18578f1e88c
test/librbd: unquiesce notifications are handled lazily

The quiesce unit tests were expecting that the unquiesce notification
would be processed by the time the snapshot create command completed.
Since the RPC is immediately ACKed, there is a potential for a race
if the test doesn't wait for the unquiesce to process.

Fixes: https://tracker.ceph.com/issues/46679
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/ImageState.cc
src/test/librbd/test_librbd.cc