You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: prevent level regression when compacting mixed-level TSM files (#27233)
compact() derives the output filename from maxGeneration and
maxSequence+1, but maxSequence was scoped to the max generation only.
When cold or forced compaction groups L1 files (high gen, seq=1) with
L4 files (low gen, seq>=4), the output gets seq=2 — regressing L4
data to L2.
Track the minimum sequence per generation to determine each
generation's true level, then bump maxSequence so the output level
never regresses below the highest input level. Per-generation max
sequence is preserved for collision avoidance, and min-sequence level
detection avoids inflating the output when a generation has split
files from the 2GB size limit.
(cherry picked from commit 142fcaa)
Fixes#27230
---------
Co-authored-by: Geoffrey Wossum <gwossum@influxdata.com>
(cherry picked from commit 381fd2d)
Fixes#27232
0 commit comments