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: v17.2.4~41^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0911c0f573e1aa753b87c24a2110449841724aa1;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 (cherry picked from commit 9c2a18f794afb617c35925ae1aeae02517be85d1) --- diff --git a/src/msg/async/ProtocolV1.cc b/src/msg/async/ProtocolV1.cc index 43363371bc3..1bc661a559b 100644 --- a/src/msg/async/ProtocolV1.cc +++ b/src/msg/async/ProtocolV1.cc @@ -662,7 +662,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; @@ -693,7 +693,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() @@ -720,7 +720,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 a176fc2c808..34f3319a723 100644 --- a/src/msg/async/ProtocolV2.cc +++ b/src/msg/async/ProtocolV2.cc @@ -1530,7 +1530,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; @@ -1560,7 +1560,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() @@ -1588,7 +1588,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() << "/"