]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
test/librados: be more tolerant with timed lock tests
authorKefu Chai <kchai@redhat.com>
Mon, 29 Jan 2018 09:58:28 +0000 (17:58 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 29 Jan 2018 15:26:04 +0000 (23:26 +0800)
commit0e0d0cd8d1adee998109c2714ed04f43b3212d7e
treeb027744d51574dee3fb9c8cd3db2f2d46c489b95
parent0d4a71ed233741ad268c0953babaa85f40046ece
test/librados: be more tolerant with timed lock tests

wait for extra 0.1 second, and try again if the lock is not expired yet.
this happens if the client and osd are not strictly sync'ed.

Fixes: http://tracker.ceph.com/issues/20086
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/librados/lock.cc