Skip to content
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

Fix race on the LabelSet Counter #6409

Merged
merged 4 commits into from
Dec 10, 2024

Conversation

alanprot
Copy link
Member

@alanprot alanprot commented Dec 10, 2024

What this PR does:

#5950 introduced a new limit Active Series "Per LabelSet."

Running cortex with the -race flag, we found that there is possible race condition on the labelSetCounter.

The TestPushRace test was update to demonstrate the issue.
https://github.com/cortexproject/cortex/actions/runs/12246709889/job/34163143753
Which issue(s) this PR fixes:
Fixes #

Checklist

  • Tests updated
  • [NA] Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Signed-off-by: alanprot <[email protected]>
Signed-off-by: alanprot <[email protected]>
@alanprot alanprot marked this pull request as ready for review December 10, 2024 00:18
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Dec 10, 2024
@alanprot alanprot force-pushed the fix-labelset-counter-race branch from 9fe559b to 7a6ad7b Compare December 10, 2024 01:25
@alanprot alanprot merged commit e9d038c into cortexproject:master Dec 10, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/ingester lgtm This PR has been approved by a maintainer size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants