mirror of
https://github.com/mulgadc/spinifex.git
synced 2026-10-15 17:11:30 +00:00
6142949a49
viperblock's WriteWALToChunk(false) is a no-op when the WAL is under 4MB (viperblock.go:1647-1657), so small user-data writes (the unit file + index.html, ~300 bytes total) sit in the on-host WAL and are lost when the host reboots before the WAL hits the threshold. Workaround: write 8MB of zeros at end of user-data + sync to push WAL over the threshold so the unit-file write definitely lands in predastore before the host reboot. Drop when upstream fix lands. Mirrors the same workaround in the Go reboot test (tests/e2e/reboot/reboot_test.go on feat/e2e-go-harness).