Skip to content

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

3 participants