Merge pull request #18428 from roidelapluie/roidelapluie/fix-tsdb-windows-chunk-prealloc

tsdb: reduce chunk segment size in TestDiskFillingUpAfterDisablingOOO
This commit is contained in:
Julien 2026-04-03 09:31:33 +02:00 committed by GitHub
commit 622d6b33f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8361,6 +8361,10 @@ func testDiskFillingUpAfterDisablingOOO(t *testing.T, scenario sampleTypeScenari
// (important for slow CI like i386 which can be 60x+ slower).
opts.SamplesPerChunk = 15
opts.OutOfOrderCapMax = 5
// Reduce the chunk segment size from the 512MB default: the test only writes
// ~80 samples so 1MB is sufficient and avoids large file pre-allocations
// during compaction on slow or constrained CI environments.
opts.MaxBlockChunkSegmentSize = 1024 * 1024
db := newTestDB(t, withOpts(opts))
db.DisableCompactions()