-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Fix bug in Bucket Series #7885
Fix bug in Bucket Series #7885
Conversation
Applies the fix described in thanos-io#7883. Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com>
Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com>
pkg/store/bucket.go
Outdated
@@ -1691,7 +1691,9 @@ func (s *BucketStore) Series(req *storepb.SeriesRequest, seriesSrv storepb.Store | |||
// Merge the sub-results from each selected block. | |||
tracing.DoInSpan(ctx, "bucket_store_merge_all", func(ctx context.Context) { | |||
begin := time.Now() | |||
set := NewResponseDeduplicator(NewProxyResponseLoserTree(respSets...)) | |||
lt := NewProxyResponseLoserTree(respSets...) | |||
defer lt.Close() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to call Close()
outside of this func(context.Context)
because before Flush()
we could still hold onto these sets?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes this is a good point. Should we move lt := NewProxyResponseLoserTree(respSets...)
outside of the span function as well, and we can defer a close right after it?
Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com>
We also noticed another issue in Cortex even after cherry-picking this change. The Store-Gateways were not able to sync blocks and was stuck at: Line 2507 in 9bc3cc0
|
Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com>
065c3be
Do we want to address #7885 (comment) separately? |
Yes, will take a separate look 👍 |
Fix bug in Bucket Series
Applies the fix described in #7883.
Changes
Verification