In situation where the object is degraded and delayed,
retry time can expire before the object is recovered
---it takes almost 6 minutes to be recovered according to
the log.
Fixes: https://tracker.ceph.com/issues/52872
Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
}
dst_refcount = refs.count();
}
- for (int tries = 0; tries < 15; ++tries) {
+ int tries = 0;
+ for (; tries < 30; ++tries) {
r = cls_cas_references_chunk(src_ioctx, src_oid, dst_oid);
if (r == -ENOENT || r == -ENOLINK) {
src_refcount = 0;
}
break;
}
+ ASSERT_TRUE(tries < 30);
ASSERT_TRUE(src_refcount >= 0);
ASSERT_TRUE(src_refcount == expected_refcount);
ASSERT_TRUE(src_refcount <= dst_refcount);