Do not error on empty chunk during iteration in populateWithDelChunkSeriesIterator

Signed-off-by: Ganesh Vernekar <ganeshvern@gmail.com>
This commit is contained in:
Ganesh Vernekar 2022-11-23 17:32:28 +05:30
parent d0e683e26d
commit ad79fb9f25
No known key found for this signature in database
GPG Key ID: F056451B52F1DC34

View File

@ -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
}