]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: decrement qlen/qactive perf counters on error 59670/head
authorMark Kogan <mkogan@redhat.com>
Wed, 21 Aug 2024 17:58:31 +0000 (17:58 +0000)
committerMark Kogan <mkogan@ibm.com>
Mon, 9 Sep 2024 11:23:37 +0000 (14:23 +0300)
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 <mkogan@redhat.com>
(cherry picked from commit fd662e5957e684fa4aca95737db69298334c0bf5)

src/rgw/rgw_process.cc

index 10e544b577df17017649b57ea8dc3db569019d33..36bf2b253550da264693db68852d7b3ee28661d8 100644 (file)
@@ -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);