From: Sage Weil Date: Mon, 1 May 2017 17:21:30 +0000 (-0400) Subject: ceph_test_rados_api_watch_notify: make LibRadosWatchNotify.Watch3Timeout tolerate... X-Git-Tag: v12.0.3~145^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F14899%2Fhead;p=ceph.git ceph_test_rados_api_watch_notify: make LibRadosWatchNotify.Watch3Timeout tolerate thrashing If the PG moves we will reconnect and fail to time out. Wait for longer so that we mask the effects of osd thrashing. Fixes: http://tracker.ceph.com/issues/19433 Signed-off-by: Sage Weil --- diff --git a/src/test/librados/watch_notify.cc b/src/test/librados/watch_notify.cc index 953df293f9cd..e28fd527119f 100644 --- a/src/test/librados/watch_notify.cc +++ b/src/test/librados/watch_notify.cc @@ -795,7 +795,9 @@ TEST_F(LibRadosWatchNotify, Watch3Timeout) { ASSERT_LT(age, age_bound * 1000); ASSERT_GT(age, 0); rados_conf_set(cluster, "objecter_inject_no_watch_ping", "true"); - int left = 2 * timeout; + // allow a long time here since an osd peering event will renew our + // watch. + int left = 16 * timeout; std::cout << "waiting up to " << left << " for osd to time us out ..." << std::endl; while (notify_err == 0 && --left) {