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

Merge v0.12.1 into master #2500

Merged
merged 6 commits into from
Apr 22, 2020
Merged

Merge v0.12.1 into master #2500

merged 6 commits into from
Apr 22, 2020

Conversation

squat
Copy link
Member

@squat squat commented Apr 22, 2020

This PR merges the release-0.12 branch back into master to get all of the 0.12.1 changes in master.

cc @thanos-io/thanos-maintainers

squat and others added 6 commits April 15, 2020 16:24
* store: proxy: add test for deadlocking problem

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

* store: proxy: add fix for timeouts

Checking here if the series context has ended is the correct fix here.
We want to check it because if any of the other Series() calls error out
then the context is canceled. So, it is equal to checking for errors
"downstream", in `mergedSeriesSet`.

Also, `handleErr()` here is the correct function to use because in such
a case we want to set `s.err` -- if `io.EOF` still hasn't been received
then it means that StoreAPI still has some data that it wants to send
but hasn't yet.

With this, the previously added test passes.

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

Co-authored-by: Giedrius Statkevičius <[email protected]>
Related to: #2459

Signed-off-by: Bartlomiej Plotka <[email protected]>
Fixes: #2471

This commit fixes an issue where multiple goroutines in the block
fetcher filtering were concurrently accessing the same map. The
goroutines were concurrently writing AND reading to the shared metas
map. This commit guards this concurrent access by giving the
DeduplicateFilter struct a mutex.

Signed-off-by: Lucas Servén Marín <[email protected]>
Fixes #2459 (quick fix).

This keeps the logic from the 0.11.0 which was good enough.

Some improvement for future: #2470

Signed-off-by: Bartlomiej Plotka <[email protected]>
Signed-off-by: Lucas Servén Marín <[email protected]>
Signed-off-by: yeya24 <[email protected]>
Signed-off-by: Lucas Servén Marín <[email protected]>

Co-authored-by: yeya24 <[email protected]>
@squat
Copy link
Member Author

squat commented Apr 22, 2020

Note: this needs a real merge, not a squash, so we need to temporarily override the repo settings once this PR is approved

Copy link
Member

@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

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

Thanks, awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants