Skip to content

Fix panic due to concurent access to rand in active queried series#7329

Merged
yeya24 merged 1 commit intocortexproject:masterfrom
yeya24:avoid-active-series-rand-panic
Mar 5, 2026
Merged

Fix panic due to concurent access to rand in active queried series#7329
yeya24 merged 1 commit intocortexproject:masterfrom
yeya24:avoid-active-series-rand-panic

Conversation

@yeya24
Copy link
Contributor

@yeya24 yeya24 commented Mar 5, 2026

What this PR does:

rand.Rand is known to be not concurrent safe and we did run into a panic because of this in the active queried series code path. golang/go#3611

Switching to use global rand instead.

Which issue(s) this PR fixes:
Fixes #

Checklist

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

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Mar 5, 2026
@yeya24 yeya24 merged commit 6294bba into cortexproject:master Mar 5, 2026
31 of 33 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/XS type/bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants