From: Mark Kogan Date: Wed, 21 Aug 2024 17:58:31 +0000 (+0000) Subject: rgw: decrement qlen/qactive perf counters on error X-Git-Tag: v19.2.1~123^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=55f7798bb8d103f7f8b29b807060ef1817f8fb1f;p=ceph.git 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) --- 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);