Fix TestMultipleEncodingsCommitOrder

series() via Select() I think on OOOHeadIndexReader was not handling
the chunk ranges correctly, creating overlapping chunk metas.

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
This commit is contained in:
György Krajcsovits 2024-08-01 12:05:16 +02:00
parent 0b10954f1c
commit 523832cdde

View file

@ -115,7 +115,7 @@ func (oh *OOOHeadIndexReader) series(ref storage.SeriesRef, builder *labels.Scra
return nil return nil
} }
for _, chk := range chks { for _, chk := range chks {
addChunk(c.minTime, c.maxTime, ref, chk.chunk) addChunk(chk.minTime, chk.maxTime, ref, chk.chunk)
} }
} else { } else {
var emptyChunk chunkenc.Chunk var emptyChunk chunkenc.Chunk