apf: call metrics.AddReject for decisionCancel
Kubernetes-commit: f6dcf17a10dfd2cb5ce0ea7923723547c92c2e55
This commit is contained in:
parent
9692745d3a
commit
3f529d0551
|
|
@ -388,6 +388,7 @@ func (req *request) wait() (bool, bool) {
|
||||||
// remove the request from the queue as it has timed out
|
// remove the request from the queue as it has timed out
|
||||||
if req.removeFromQueueLocked() != nil {
|
if req.removeFromQueueLocked() != nil {
|
||||||
qs.totRequestsWaiting--
|
qs.totRequestsWaiting--
|
||||||
|
metrics.AddReject(req.ctx, qs.qCfg.Name, req.fsName, "cancelled")
|
||||||
metrics.AddRequestsInQueues(req.ctx, qs.qCfg.Name, req.fsName, -1)
|
metrics.AddRequestsInQueues(req.ctx, qs.qCfg.Name, req.fsName, -1)
|
||||||
req.NoteQueued(false)
|
req.NoteQueued(false)
|
||||||
qs.obsPair.RequestsWaiting.Add(-1)
|
qs.obsPair.RequestsWaiting.Add(-1)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue