]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tests: ceph_test_rados_api_watch_notify: test timeout using rados_watch3() 14061/head
authorKefu Chai <kchai@redhat.com>
Tue, 21 Mar 2017 06:03:23 +0000 (14:03 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 21 Mar 2017 06:03:25 +0000 (14:03 +0800)
commit4cdc8f9588b0c2d0b62dc91a3a1e884deebcf534
tree0519e0841c51db8460a93eef9be5adca359549fa
parentb9352481977c9b1034e9ed8d37c5afef832a1fb5
tests: ceph_test_rados_api_watch_notify: test timeout using rados_watch3()

objecter resends the watch request upon tcp reconnecting, and OSD
resets the watch timeout when handling the resent watch request, so,
with a small "ms tcp read timeout", the timeout test always fails. in
this change, we use rados_watch3() which supports the "timeout" option,
so we can pass a timeout smaller than "ms tcp read timeout", and hence
the test can pass.

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