]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph_test_rados_api_misc: adjust LibRadosMiscConnectFailure.ConnectTimeout timeout 58137/head
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Mon, 17 Jun 2024 18:37:11 +0000 (18:37 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 19 Jun 2024 12:47:15 +0000 (12:47 +0000)
commitbe3ccd3a81d2d97fef1a64f8acf12e6be67835d9
treec2db45457f952ee3a927bf68903f2caaed2661af
parentb7891caa25f6ba55df8bd8a9a7e29b436289e908
ceph_test_rados_api_misc: adjust LibRadosMiscConnectFailure.ConnectTimeout timeout

The test sets a 2 second connection timeout and asserts that the
attempt takes less than 4 seconds.

Under load, the asserted timeout can be exceeded. In particular,
this affects the Windows CI job, which uses a VM with a reduced
amount of resources.

    [ RUN      ] LibRadosMiscConnectFailure.ConnectTimeout
    /home/ubuntu/ceph/src/test/librados/misc.cc:87: Failure
    Expected: (dur) < (utime_t(4, 0)), actual: 5.987712 vs 4.000000

We'll adjust the timeouts, using a 5s configured timeout, asserting
that the connection attempt doesn't take more than 15s.

Fixes: https://tracker.ceph.com/issues/66534
Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
(cherry picked from commit 3a2b4a58898477ae9f62b506bd5be56ff9abacf0)
src/test/librados/misc.cc