]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_test_rados_api_watch_notify: extend Watch3Timeout test 51261/head
authorSage Weil <sage@newdream.net>
Thu, 28 Oct 2021 14:06:34 +0000 (10:06 -0400)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Thu, 27 Apr 2023 13:15:34 +0000 (20:15 +0700)
Make this test try harder, since osd peering may interfere with a timeout.

Fixes: https://tracker.ceph.com/issues/24990
Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit af60ccdac2baa6f7545d3db1adb60cc2109cd91d)

src/test/librados/watch_notify.cc

index 79cdd5abe75a2f0b401622bd383772e99d7c05ad..f2becd4943942a5574e31d6b40838be0ea02a178 100644 (file)
@@ -541,7 +541,7 @@ TEST_F(LibRadosWatchNotify, Watch3Timeout) {
   rados_conf_set(cluster, "objecter_inject_no_watch_ping", "true");
   // allow a long time here since an osd peering event will renew our
   // watch.
-  int left = 16 * timeout;
+  int left = 256 * timeout;
   std::cout << "waiting up to " << left << " for osd to time us out ..."
            << std::endl;
   while (notify_err == 0 && --left) {