]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: extend retry timeout from 150s to 300s 40900/head
authormyoungwon oh <ohmyoungwon@gmail.com>
Sun, 18 Apr 2021 01:03:54 +0000 (10:03 +0900)
committermyoungwon oh <ohmyoungwon@gmail.com>
Sun, 18 Apr 2021 01:13:05 +0000 (10:13 +0900)
Manifest objects try to recover their clones if the clones
are unreadable when calculating ref. count.
In some case, the recovery takes more time than 150s,
so this commit extends time from 150s to 300s.

Fixes: https://tracker.ceph.com/issues/50352
Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
src/test/librados/tier_cxx.cc

index b12d09e51da359e6ec3476fd3fa4612594613d14..cc82d32b5a337bbf621302b91adc55875d5b67e1 100644 (file)
@@ -179,12 +179,12 @@ void is_intended_refcount_state(librados::IoCtx& src_ioctx,
     }
     dst_refcount = refs.count();
   }
-  for (int tries = 0; tries < 10; ++tries) {
+  for (int tries = 0; tries < 15; ++tries) {
     r = cls_cas_references_chunk(src_ioctx, src_oid, dst_oid);
     if (r == -ENOENT || r == -ENOLINK) {
       src_refcount = 0;
     } else if (r == -EBUSY) {
-      sleep(15);
+      sleep(20);
       continue;
     } else {
       src_refcount = r;