From 55f7798bb8d103f7f8b29b807060ef1817f8fb1f Mon Sep 17 00:00:00 2001 From: Mark Kogan Date: Wed, 21 Aug 2024 17:58:31 +0000 Subject: [PATCH] rgw: decrement qlen/qactive perf counters on error like for example ``` 2024-08-21T16:01:59.146+0000 7fffe6348640 0 ERROR: client_io->complete_request() returned Broken pipe ``` Fixes: https://tracker.ceph.com/issues/48358 Signed-off-by: Mark Kogan (cherry picked from commit fd662e5957e684fa4aca95737db69298334c0bf5) --- src/rgw/rgw_process.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rgw/rgw_process.cc b/src/rgw/rgw_process.cc index 10e544b577df1..36bf2b253550d 100644 --- a/src/rgw/rgw_process.cc +++ b/src/rgw/rgw_process.cc @@ -437,6 +437,8 @@ done: } catch (rgw::io::Exception& e) { dout(0) << "ERROR: client_io->complete_request() returned " << e.what() << dendl; + perfcounter->inc(l_rgw_qlen, -1); + perfcounter->inc(l_rgw_qactive, -1); } if (should_log) { rgw_log_op(rest, s, op, penv.olog); -- 2.39.5