From: Brad Hubbard Date: Fri, 8 Jul 2022 01:36:57 +0000 (+1000) Subject: msg: Log at higher level when Throttle::get_or_fail() fails X-Git-Tag: v18.0.0~476^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9c2a18f794afb617c35925ae1aeae02517be85d1;p=ceph.git msg: Log at higher level when Throttle::get_or_fail() fails Fixes: https://tracker.ceph.com/issues/56495 Signed-off-by: Brad Hubbard --- diff --git a/src/msg/async/ProtocolV1.cc b/src/msg/async/ProtocolV1.cc index 7373bada4b4e..9376d46b0bd2 100644 --- a/src/msg/async/ProtocolV1.cc +++ b/src/msg/async/ProtocolV1.cc @@ -669,7 +669,7 @@ CtPtr ProtocolV1::throttle_message() { << "/" << connection->policy.throttler_messages->get_max() << dendl; if (!connection->policy.throttler_messages->get_or_fail()) { - ldout(cct, 10) << __func__ << " wants 1 message from policy throttle " + ldout(cct, 1) << __func__ << " wants 1 message from policy throttle " << connection->policy.throttler_messages->get_current() << "/" << connection->policy.throttler_messages->get_max() << " failed, just wait." << dendl; @@ -700,7 +700,7 @@ CtPtr ProtocolV1::throttle_bytes() { << connection->policy.throttler_bytes->get_current() << "/" << connection->policy.throttler_bytes->get_max() << dendl; if (!connection->policy.throttler_bytes->get_or_fail(cur_msg_size)) { - ldout(cct, 10) << __func__ << " wants " << cur_msg_size + ldout(cct, 1) << __func__ << " wants " << cur_msg_size << " bytes from policy throttler " << connection->policy.throttler_bytes->get_current() << "/" << connection->policy.throttler_bytes->get_max() @@ -727,7 +727,7 @@ CtPtr ProtocolV1::throttle_dispatch_queue() { if (cur_msg_size) { if (!connection->dispatch_queue->dispatch_throttler.get_or_fail( cur_msg_size)) { - ldout(cct, 10) + ldout(cct, 1) << __func__ << " wants " << cur_msg_size << " bytes from dispatch throttle " << connection->dispatch_queue->dispatch_throttler.get_current() << "/" diff --git a/src/msg/async/ProtocolV2.cc b/src/msg/async/ProtocolV2.cc index 0cd5f96ac2b1..9cc56edd8bb7 100644 --- a/src/msg/async/ProtocolV2.cc +++ b/src/msg/async/ProtocolV2.cc @@ -1537,7 +1537,7 @@ CtPtr ProtocolV2::throttle_message() { << "/" << connection->policy.throttler_messages->get_max() << dendl; if (!connection->policy.throttler_messages->get_or_fail()) { - ldout(cct, 10) << __func__ << " wants 1 message from policy throttle " + ldout(cct, 1) << __func__ << " wants 1 message from policy throttle " << connection->policy.throttler_messages->get_current() << "/" << connection->policy.throttler_messages->get_max() << " failed, just wait." << dendl; @@ -1567,7 +1567,7 @@ CtPtr ProtocolV2::throttle_bytes() { << connection->policy.throttler_bytes->get_current() << "/" << connection->policy.throttler_bytes->get_max() << dendl; if (!connection->policy.throttler_bytes->get_or_fail(cur_msg_size)) { - ldout(cct, 10) << __func__ << " wants " << cur_msg_size + ldout(cct, 1) << __func__ << " wants " << cur_msg_size << " bytes from policy throttler " << connection->policy.throttler_bytes->get_current() << "/" << connection->policy.throttler_bytes->get_max() @@ -1595,7 +1595,7 @@ CtPtr ProtocolV2::throttle_dispatch_queue() { if (cur_msg_size) { if (!connection->dispatch_queue->dispatch_throttler.get_or_fail( cur_msg_size)) { - ldout(cct, 10) + ldout(cct, 1) << __func__ << " wants " << cur_msg_size << " bytes from dispatch throttle " << connection->dispatch_queue->dispatch_throttler.get_current() << "/"