]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
neorados: relax fifo trim error for ENODATA
authorSeena Fallah <seenafallah@gmail.com>
Sat, 19 Apr 2025 21:23:33 +0000 (23:23 +0200)
committerSeena Fallah <seenafallah@gmail.com>
Sat, 19 Apr 2025 21:25:58 +0000 (23:25 +0200)
Don't log failure if no data is there to be trimmed. this can be
seen by running `radosgw-admin datalog autotrim`.

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
src/neorados/cls/fifo.h

index 4e96aaa12cd5521650bf594b715ab64e5d050f3c..fe0f94a85a9216c053fa2ca998df84d0d2e7d97d 100644 (file)
@@ -1734,8 +1734,10 @@ public:
                      sys::error_code{});
           co_return sys::error_code{};
         } catch (const sys::system_error& e) {
-          ldpp_dout(dpp, -1) << __PRETTY_FUNCTION__ << ":" << __LINE__
-                             << " trim failed: " << e.what() << dendl;
+          if (ceph::from_error_code(e.code()) != -ENODATA) {
+            ldpp_dout(dpp, -1) << __PRETTY_FUNCTION__ << ":" << __LINE__
+                               << " trim failed: " << e.what() << dendl;
+          }
           co_return e.code();
         }
        }, rados.get_executor()),