Skip to content

Commit

Permalink
reset the records buffer when stop() is called.
Browse files Browse the repository at this point in the history
Signed-off-by: gotjosh <josue.abreu@gmail.com>
  • Loading branch information
gotjosh committed Nov 13, 2024
1 parent 753ba3b commit 9192f31
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/storage/ingest/fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ func (r *concurrentFetchers) Stop() {
close(r.done)

r.wg.Wait()
r.bufferedFetchedRecords.Store(0)

level.Info(r.logger).Log("msg", "stopped concurrent fetchers", "last_returned_record", r.lastReturnedRecord)
}
Expand Down

0 comments on commit 9192f31

Please sign in to comment.