]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: decrement qlen/qactive perf counters on error 59386/head
authorMark Kogan <mkogan@redhat.com>
Wed, 21 Aug 2024 17:58:31 +0000 (17:58 +0000)
committerMark Kogan <mkogan@redhat.com>
Wed, 21 Aug 2024 17:58:31 +0000 (17:58 +0000)
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>
src/rgw/rgw_process.cc

index 8c93f77278b7d61f3dea79f70670f67259712296..14d6d26f7d23e0421d4ca4113ad5b67fe0c735af 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);