]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: decrement qlen/qactive perf counters on error 59669/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:22:19 +0000 (14:22 +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 8d20251f8f7488abb95088d870f1b49395c54ce4..411f53297dd89199b48984ffd0a80bf3c71490c6 100644 (file)
@@ -432,6 +432,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);