mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-05 04:16:15 +02:00
Merge pull request #18428 from roidelapluie/roidelapluie/fix-tsdb-windows-chunk-prealloc
tsdb: reduce chunk segment size in TestDiskFillingUpAfterDisablingOOO
This commit is contained in:
commit
622d6b33f4
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user