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

Fixed panic while collecting Prometheus metrics #4483

Merged
merged 1 commit into from
Sep 17, 2021
Merged

Conversation

bboreham
Copy link
Contributor

HistogramData.buckets must be immutable after HistogramData.Metric()
has been called, so take an extra copy.

Fixes #4480

Checklist

  • NA Tests updated
  • NA Documentation added
  • CHANGELOG.md updated

`HistogramData.buckets` must be immutable after `HistogramData.Metric()`
has been called, so take an extra copy.

Signed-off-by: Bryan Boreham <[email protected]>

Co-authored-by: Marco Pracucci <[email protected]>

Co-authored-by: Peter Štibraný <[email protected]>
@bboreham bboreham enabled auto-merge (squash) September 17, 2021 10:12
@bboreham bboreham merged commit 83d15b5 into master Sep 17, 2021
srijan55 pushed a commit to srijan55/cortex that referenced this pull request Nov 26, 2021
`HistogramData.buckets` must be immutable after `HistogramData.Metric()`
has been called, so take an extra copy.

Signed-off-by: Bryan Boreham <[email protected]>

Co-authored-by: Marco Pracucci <[email protected]>

Co-authored-by: Peter Štibraný <[email protected]>
Signed-off-by: Manish Kumar Gupta <[email protected]>
alvinlin123 pushed a commit to ac1214/cortex that referenced this pull request Jan 14, 2022
`HistogramData.buckets` must be immutable after `HistogramData.Metric()`
has been called, so take an extra copy.

Signed-off-by: Bryan Boreham <[email protected]>

Co-authored-by: Marco Pracucci <[email protected]>

Co-authored-by: Peter Štibraný <[email protected]>
Signed-off-by: Alvin Lin <[email protected]>
@friedrichg friedrichg deleted the fix-compactor-panic branch December 11, 2023 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compactor fails with concurrent map iteration and map write
2 participants