File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,14 +44,18 @@ const CHECKPOINT_INTERVAL_SECS: &str = "2";
4444/// rotation.
4545const WAL_SEGMENT_TARGET_MB : & str = "1" ;
4646
47- /// Filler payload per row. Large enough that a few dozen rows clear several
48- /// 1 MiB segments, small enough to stay far under the 64 MiB WAL record cap.
49- const FILLER_VALUE_BYTES : usize = 64 * 1024 ;
47+ /// Filler payload per row — deliberately large so the whole segment-sealing
48+ /// filler is a handful of writes, not dozens. Each filler INSERT is its own
49+ /// WAL fsync round-trip against a spawned (unoptimized) server, so a few big
50+ /// rows are dramatically faster than many small ones on a slow CI disk while
51+ /// sealing the same number of segments. Stays under the 1 MiB segment target
52+ /// (so one record fits in a segment) and far under the 64 MiB WAL record cap.
53+ const FILLER_VALUE_BYTES : usize = 512 * 1024 ;
5054
5155/// ~2.5 MiB of filler over a 1 MiB segment target: enough to seal at least two
5256/// segments, so the canary's segment is sealed and strictly below the active
5357/// one no matter where the boot records happened to land.
54- const FILLER_ROWS : usize = 40 ;
58+ const FILLER_ROWS : usize = 5 ;
5559
5660/// How long to wait for the checkpoint to unlink the canary's segment. Several
5761/// times the checkpoint interval, but bounded: a timeout here means truncation
You can’t perform that action at this time.
0 commit comments