Skip to content

Commit

Permalink
check context cancel when doing posting batches (thanos-io#6396)
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Ye <[email protected]>
  • Loading branch information
yeya24 authored and HC Zhu committed Jun 27, 2023
1 parent 69bd4bc commit 2163faf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/store/bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -1013,6 +1013,9 @@ func (b *blockSeriesClient) nextBatch() error {

b.entries = b.entries[:0]
for i := 0; i < len(postingsBatch); i++ {
if err := b.ctx.Err(); err != nil {
return err
}
ok, err := b.indexr.LoadSeriesForTime(postingsBatch[i], &b.symbolizedLset, &b.chkMetas, b.skipChunks, b.mint, b.maxt)
if err != nil {
return errors.Wrap(err, "read series")
Expand Down

0 comments on commit 2163faf

Please sign in to comment.