Closed tiagodaraujo closed 3 months ago
Hi @tiagodaraujo ! Thanks for reporting the issue, we'll investigate and give you feedback.
Hi @kikofps, I just opened a pull request to review and fix this issue
https://github.com/Farfetch/loadshedding/pull/23
Thanks in advance
Hi @tiagodaraujo , Thank you, we're reviewing the pull request.
Prerequisites
Description
The
http_requests_queue_items_total
metric is being used as a counter to report the total task waiting in the queue.Sometimes after the queue is empty the gauge reports more than 0 items in the queue.
Steps to reproduce
AssertMetrics
method as described belowRun Until Failure
)Expected behavior
After processing all the tasks the metrics http_requests_queue_items_total and http_requests_concurrency_items_total must be 0 for all methods and priorities
Actual behavior
When the test fails, the http_requests_queue_items_total is 1, however it must be 0.
I saw one test failing which method where http_requests_queue_items_total{method=GET} 1 and http_requests_queue_items_total{method=UNKNOWN} -1
LoadShedding version
1.0.0