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

query: fix selectStore hints race #6852

Merged
merged 1 commit into from
Oct 27, 2023
Merged

query: fix selectStore hints race #6852

merged 1 commit into from
Oct 27, 2023

Conversation

GiedriusS
Copy link
Member

Appending to the hints slice modifies the original request and we have multiple of goroutines doing that at the same time. Hence, make a copy of the hints and append only then.

Appending to the hints slice modifies the original request and we have
multiple of goroutines doing that at the same time. Hence, make a copy
of the hints and append only then.

Signed-off-by: Giedrius Statkevičius <[email protected]>
Copy link
Member

@saswatamcode saswatamcode left a comment

Choose a reason for hiding this comment

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

LGTM!

@saswatamcode saswatamcode enabled auto-merge (squash) October 27, 2023 09:26
@saswatamcode saswatamcode merged commit 103476d into main Oct 27, 2023
16 checks passed
@GiedriusS GiedriusS deleted the fix_selectstore_race branch October 27, 2023 12:37
douglascamata pushed a commit to douglascamata/thanos that referenced this pull request Dec 13, 2023
Appending to the hints slice modifies the original request and we have
multiple of goroutines doing that at the same time. Hence, make a copy
of the hints and append only then.

Signed-off-by: Giedrius Statkevičius <[email protected]>
douglascamata pushed a commit to douglascamata/thanos that referenced this pull request Dec 13, 2023
Appending to the hints slice modifies the original request and we have
multiple of goroutines doing that at the same time. Hence, make a copy
of the hints and append only then.

Signed-off-by: Giedrius Statkevičius <[email protected]>
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.

2 participants