diff options
author | myoungwon oh <ohmyoungwon@gmail.com> | 2021-10-12 05:09:22 +0200 |
---|---|---|
committer | myoungwon oh <ohmyoungwon@gmail.com> | 2021-10-13 03:44:48 +0200 |
commit | 82bcf9b57fc4939677ef1af20a1a3fa258243a37 (patch) | |
tree | d7bbd1cc1c7375fd5848a983371ccfa7abdfccc3 /src/test/librados/tier_cxx.cc | |
parent | Merge PR #43399 into master (diff) | |
download | ceph-82bcf9b57fc4939677ef1af20a1a3fa258243a37.tar.xz ceph-82bcf9b57fc4939677ef1af20a1a3fa258243a37.zip |
test: increase retry duration when calculating manifest ref. count
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>
Diffstat (limited to 'src/test/librados/tier_cxx.cc')
-rw-r--r-- | src/test/librados/tier_cxx.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/librados/tier_cxx.cc b/src/test/librados/tier_cxx.cc index 4239084b6c7..287c6fa2ae6 100644 --- a/src/test/librados/tier_cxx.cc +++ b/src/test/librados/tier_cxx.cc @@ -177,7 +177,8 @@ void is_intended_refcount_state(librados::IoCtx& src_ioctx, } 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; @@ -189,6 +190,7 @@ void is_intended_refcount_state(librados::IoCtx& src_ioctx, } break; } + ASSERT_TRUE(tries < 30); ASSERT_TRUE(src_refcount >= 0); ASSERT_TRUE(src_refcount == expected_refcount); ASSERT_TRUE(src_refcount <= dst_refcount); |