Skip to content

Commit f998fc5

Browse files
authored
Close block series client at the end to not reuse chunk buf (thanos-io#7915)
* always close block series client at the end Signed-off-by: Ben Ye <[email protected]> * add back close for loser tree Signed-off-by: Ben Ye <[email protected]> --------- Signed-off-by: Ben Ye <[email protected]>
1 parent 8c49344 commit f998fc5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/store/bucket.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1572,6 +1572,8 @@ func (s *BucketStore) Series(req *storepb.SeriesRequest, seriesSrv storepb.Store
15721572
tenant,
15731573
)
15741574

1575+
defer blockClient.Close()
1576+
15751577
g.Go(func() error {
15761578

15771579
span, _ := tracing.StartSpan(gctx, "bucket_store_block_series", tracing.Tags{
@@ -3379,7 +3381,6 @@ func (r *bucketIndexReader) Close() error {
33793381
}
33803382

33813383
func (b *blockSeriesClient) CloseSend() error {
3382-
b.Close()
33833384
return nil
33843385
}
33853386

0 commit comments

Comments
 (0)