mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-30 07:03:06 -08:00
Do not error on empty chunk during iteration in populateWithDelChunkSeriesIterator
Signed-off-by: Ganesh Vernekar <ganeshvern@gmail.com>
This commit is contained in:
parent
d0e683e26d
commit
ad79fb9f25
|
@ -705,12 +705,7 @@ func (p *populateWithDelChunkSeriesIterator) Next() bool {
|
||||||
if valueType == chunkenc.ValNone {
|
if valueType == chunkenc.ValNone {
|
||||||
if err := p.currDelIter.Err(); err != nil {
|
if err := p.currDelIter.Err(); err != nil {
|
||||||
p.err = errors.Wrap(err, "iterate chunk while re-encoding")
|
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
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue