influxdb/influxdb3
Stuart Carnie 01c907de0e
fix: handle corrupt WAL files during replay without panic (#26556)
Add bounds checking to prevent panic when WAL files are empty or
truncated. Introduces `--wal-replay-fail-on-error` flag to control
behavior when encountering corrupt WAL files during replay.

- Add WalFileTooSmall error for files missing required header bytes
- Validate minimum file size (12 bytes) before attempting
  deserialization
- Make WAL replay configurable: skip corrupt files by default or fail
  on error
- Add comprehensive tests for empty, truncated, and header-only files

Closes #26549
2025-06-24 12:57:40 +01:00
..
src fix: handle corrupt WAL files during replay without panic (#26556) 2025-06-24 12:57:40 +01:00
tests feat: Hard delete database and table (#26553) 2025-06-24 12:36:23 +01:00
Cargo.toml refactor: split into binary and library targets (#26521) 2025-06-16 11:37:29 -06:00