]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd/osd_operations/client_request: Add logs around do_process()
authorMatan Breizman <mbreizma@redhat.com>
Tue, 29 Nov 2022 10:59:55 +0000 (10:59 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Tue, 7 Mar 2023 08:11:38 +0000 (08:11 +0000)
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
src/crimson/osd/osd_operations/client_request.cc

index df2ea1523b61c3b824ffb2dea04e2d388fcc76e0..5d0f7a502ff5ab9ca0dc184a38f40b6bc7d3aa96 100644 (file)
@@ -261,11 +261,16 @@ ClientRequest::do_process(
   if (!pg->is_primary()) {
     // primary can handle both normal ops and balanced reads
     if (is_misdirected(*pg)) {
-      logger().trace("do_process: dropping misdirected op");
+      logger().debug("{}: dropping misdirected op", __func__);
       return seastar::now();
     } else if (const hobject_t& hoid = m->get_hobj();
                !pg->get_peering_state().can_serve_replica_read(hoid)) {
+      logger().debug("{}: unstable write on replica, bouncing to primary",
+                     __func__);
       return reply_op_error(pg, -EAGAIN);
+    } else {
+      logger().debug("{}: : serving replica read on oid {}",
+                     __func__, m->get_hobj());
     }
   }
   if (m->has_flag(CEPH_OSD_FLAG_PARALLELEXEC)) {