Skip to content

fix: set correct number of keys in background cache metrics #2764

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 23, 2020

Conversation

taharah
Copy link
Contributor

@taharah taharah commented Jun 22, 2020

Signed-off-by: Trevor Wood Trevor.G.Wood@gmail.com

What this PR does:

Currently, the number of keys in the background cache queue is incorrectly reported. Each batch of keys adds the total remaining keys to the queue length metric rather than the number of keys that were just added to the queue, which results in the queue appearing to grow infinitely in size without ever decreasing.

Which issue(s) this PR fixes:
N/A

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]
Signed-off-by: Trevor Wood <Trevor.G.Wood@gmail.com>
@taharah taharah force-pushed the fix-cache-metrics branch from d83366c to f0379e3 Compare June 22, 2020 19:38
Copy link
Contributor

@pstibrany pstibrany left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

Copy link
Contributor

@pracucci pracucci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

@pracucci pracucci merged commit 23e5927 into cortexproject:master Jun 23, 2020
@taharah taharah deleted the fix-cache-metrics branch January 23, 2021 03:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 participants