From ad79fb9f25eadef795362327fa3f7846d262f96b Mon Sep 17 00:00:00 2001 From: Ganesh Vernekar Date: Wed, 23 Nov 2022 17:32:28 +0530 Subject: [PATCH] Do not error on empty chunk during iteration in populateWithDelChunkSeriesIterator Signed-off-by: Ganesh Vernekar --- tsdb/querier.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tsdb/querier.go b/tsdb/querier.go index 70b384e02..0f9b4d3b4 100644 --- a/tsdb/querier.go +++ b/tsdb/querier.go @@ -705,12 +705,7 @@ func (p *populateWithDelChunkSeriesIterator) Next() bool { if valueType == chunkenc.ValNone { if err := p.currDelIter.Err(); err != nil { p.err = errors.Wrap(err, "iterate chunk while re-encoding") - return false } - - // Empty chunk, this should not happen, as we assume full - // deletions being filtered before this iterator. - p.err = errors.New("populateWithDelChunkSeriesIterator: unexpected empty chunk found while rewriting chunk") return false }