]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
msg: decrease the level to print the sending msgs from the protocol
authorXiubo Li <xiubli@redhat.com>
Tue, 4 Jun 2024 01:28:19 +0000 (09:28 +0800)
committerXiubo Li <xiubli@redhat.com>
Wed, 5 Jun 2024 02:19:24 +0000 (10:19 +0800)
We have hitting the issue, which is the messages are stuck in the
sender queue, many times. We just suspect it's a bug of the protocol
code and we need to know exactly whether the msgs are sent out or
not.

Related: https://tracker.ceph.com/issues/65309
Signed-off-by: Xiubo Li <xiubli@redhat.com>
src/msg/async/ProtocolV1.cc
src/msg/async/ProtocolV2.cc

index 041942fd906ac3ba34117a1efe2d6c157149ce2c..28528de895a7e8645d51bd2f1cdcbadd95215310 100644 (file)
@@ -1173,8 +1173,8 @@ ssize_t ProtocolV1::write_message(Message *m, ceph::buffer::list &bl, bool more)
   }
 
   m->trace.event("async writing message");
-  ldout(cct, 20) << __func__ << " sending " << m->get_seq() << " " << m
-                 << dendl;
+  ldout(cct, 2) << __func__ << " sending message m=" << m
+                << " seq=" << m->get_seq() << " " << *m << dendl;
   ssize_t total_send_size = connection->outgoing_bl.length();
   ssize_t rc = connection->_try_send(more);
   if (rc < 0) {
index 7c4a4d0fe94137df39e12234ecfd986e1dbb3979..825617e84373ac9abf00262d2646814780f92e08 100644 (file)
@@ -551,7 +551,7 @@ ssize_t ProtocolV2::write_message(Message *m, bool more) {
     return -EILSEQ;
   }
 
-  ldout(cct, 5) << __func__ << " sending message m=" << m
+  ldout(cct, 2) << __func__ << " sending message m=" << m
                 << " seq=" << m->get_seq() << " " << *m << dendl;
 
   m->trace.event("async writing message");