]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
src/test: allow ENOENT when calling SetChunkOp
authormyoungwon oh <ohmyoungwon@gmail.com>
Thu, 4 Feb 2021 03:41:24 +0000 (12:41 +0900)
committermyoungwon oh <ohmyoungwon@gmail.com>
Mon, 29 Mar 2021 08:08:23 +0000 (17:08 +0900)
The oid targeting the low tier can be deleted during
mixed test, which sends tier_evict, tier_promote, and tier flush
because the reference of the target oid can be decreased.

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
src/test/osd/RadosModel.h

index 4bde44f4c1730c9c353da4c8a4d0a42dedcef810..36fff7afb7ae91e93f10203ec3235e0a744cff34 100644 (file)
@@ -2377,6 +2377,9 @@ public:
       if ((r = comp->get_return_value())) {
        if (r == -ENOENT && src_value.deleted()) {
          cout << num << ":  got expected ENOENT (src dne)" << std::endl;
+       } else if (r == -ENOENT && context->oid_set_chunk_tgt_pool.find(oid_tgt) != 
+                 context->oid_set_chunk_tgt_pool.end()) {
+         cout << num << ": get expected ENOENT tgt oid " << oid_tgt << std::endl;
        } else if (r == -EOPNOTSUPP) {
          bool is_overlapped = false;
          interval_set<uint64_t> chunk;