log any chunk fetch failure (#2804)

pull/2806/head
Ed Welch 5 years ago committed by GitHub
parent af6e8cb6c9
commit b80f37b724
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      pkg/storage/batch.go

@ -656,6 +656,7 @@ func fetchLazyChunks(ctx context.Context, chunks []*LazyChunk) error {
}
chks, err := fetcher.FetchChunks(ctx, chks, keys)
if err != nil {
level.Error(util.Logger).Log("msg", "error fetching chunks", "err", err)
if isInvalidChunkError(err) {
level.Error(util.Logger).Log("msg", "checksum of chunks does not match", "err", chunk.ErrInvalidChecksum)
errChan <- nil

Loading…
Cancel
Save