From 523832cdde9ceb8f4807aa04ca065289014e7935 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gy=C3=B6rgy=20Krajcsovits?= Date: Thu, 1 Aug 2024 12:05:16 +0200 Subject: [PATCH] Fix TestMultipleEncodingsCommitOrder MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit series() via Select() I think on OOOHeadIndexReader was not handling the chunk ranges correctly, creating overlapping chunk metas. Signed-off-by: György Krajcsovits --- tsdb/ooo_head_read.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsdb/ooo_head_read.go b/tsdb/ooo_head_read.go index a35276af50..dd45a9ced1 100644 --- a/tsdb/ooo_head_read.go +++ b/tsdb/ooo_head_read.go @@ -115,7 +115,7 @@ func (oh *OOOHeadIndexReader) series(ref storage.SeriesRef, builder *labels.Scra return nil } for _, chk := range chks { - addChunk(c.minTime, c.maxTime, ref, chk.chunk) + addChunk(chk.minTime, chk.maxTime, ref, chk.chunk) } } else { var emptyChunk chunkenc.Chunk