mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #105739 from tkashem/apf-decision-cancel
apf: call metrics.AddReject for decisionCancel
This commit is contained in:
commit
e580aa93d1
@ -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
Block a user