tsdb: Update OOO min/max time properly after replaying m-map chunks

Without this fix, if snapshots were enabled, and wbl goes missing
between restarts, then TSDB does not recognize that there are ooo
mmap chunks on disk and we cannot query them until those chunks
are compacted into blocks.

Signed-off-by: Ganesh Vernekar <ganeshvern@gmail.com>
This commit is contained in:
Ganesh Vernekar 2023-03-13 12:27:46 +05:30
parent 1c3f1216b3
commit 2af44f9558
No known key found for this signature in database
GPG Key ID: F056451B52F1DC34
1 changed files with 1 additions and 0 deletions

View File

@ -836,6 +836,7 @@ func (h *Head) loadMmappedChunks(refSeries map[chunks.HeadSeriesRef]*memSeries)
numSamples: numSamples,
})
h.updateMinOOOMaxOOOTime(mint, maxt)
return nil
}