mirror of
https://github.com/prometheus/prometheus.git
synced 2026-06-09 00:22:19 -04:00
fix(tsdb): make all OOO chunks be re-coded
Fixing the error when an OOO mmaped chunk has a counter reset that is cleared by a later OOO mmaped chunk or OOO in-memory chunk. Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
This commit is contained in:
parent
3a1dc4f0d2
commit
e9ba0c1047
1 changed files with 1 additions and 1 deletions
|
|
@ -149,7 +149,7 @@ func getOOOSeriesChunks(s *memSeries, mint, maxt int64, lastGarbageCollectedMmap
|
|||
prevIsOOO := false
|
||||
for i, c := range tmpChks[1:] {
|
||||
currIsOOO := isOOOChunkID(chunks.HeadChunkID(c.Ref))
|
||||
if c.MinTime > toBeMerged.MaxTime && (i == 0 || prevIsOOO == currIsOOO) {
|
||||
if c.MinTime > toBeMerged.MaxTime && (i == 0 || prevIsOOO == currIsOOO) && !currIsOOO {
|
||||
// This chunk doesn't overlap and we are not switching between in-order
|
||||
// and out-of-order chunks. Send current toBeMerged to output and start
|
||||
// a new one.
|
||||
|
|
|
|||
Loading…
Reference in a new issue