Skip to content

Commit

Permalink
Fix bug in Bucket Series
Browse files Browse the repository at this point in the history
Applies the fix described in thanos-io#7883.

Signed-off-by: Filip Petkovski <[email protected]>
  • Loading branch information
fpetkovski committed Nov 5, 2024
1 parent 9bc3cc0 commit 77bd9c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/store/bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
set := NewResponseDeduplicator(lt)
i := 0
for set.Next() {
i++
Expand Down

0 comments on commit 77bd9c0

Please sign in to comment.