Skip to content

Commit

Permalink
Merge pull request #110 from vinted/rev_thanos_losertree
Browse files Browse the repository at this point in the history
Revert "store: use loser trees"
  • Loading branch information
GiedriusS authored Jun 4, 2024
2 parents 0cfdd6a + b796a26 commit c4dae3f
Show file tree
Hide file tree
Showing 9 changed files with 140 additions and 402 deletions.
161 changes: 0 additions & 161 deletions pkg/losertree/tree.go

This file was deleted.

124 changes: 0 additions & 124 deletions pkg/losertree/tree_test.go

This file was deleted.

7 changes: 6 additions & 1 deletion pkg/store/bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -1625,8 +1625,13 @@ 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) {
defer func() {
for _, resp := range respSets {
resp.Close()
}
}()
begin := time.Now()
set := NewResponseDeduplicator(NewProxyResponseLoserTree(respSets...))
set := NewDedupResponseHeap(NewProxyResponseHeap(respSets...))
for set.Next() {
at := set.At()
warn := at.GetWarning()
Expand Down
2 changes: 1 addition & 1 deletion pkg/store/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ func (s *ProxyStore) Series(originalRequest *storepb.SeriesRequest, srv storepb.

level.Debug(reqLogger).Log("msg", "Series: started fanout streams", "status", strings.Join(storeDebugMsgs, ";"))

respHeap := NewResponseDeduplicator(NewProxyResponseLoserTree(storeResponses...))
respHeap := NewDedupResponseHeap(NewProxyResponseHeap(storeResponses...))
for respHeap.Next() {
resp := respHeap.At()

Expand Down
Loading

0 comments on commit c4dae3f

Please sign in to comment.