pingqiuandClaude Opus 5.5 903200df85 volume: report wal_corrupt / io_error from a failed durable recovery at once
#133: when local durable recovery fails with a classifiable error, a
primary-assigned replica reports the typed reason immediately instead
of waiting out --recover-timeout:

- wal_corrupt: storage.RecoveryFailure of kind WALIntegrity (the
  substrates' integrity fault, e.g. a WAL/extent CRC mismatch), or the
  ErrWALIntegrityFault sentinel;
- io_error: kind SubstrateIO, an fs.PathError, io.ErrUnexpectedEOF or
  EIO.

Anything else is not classified: it reports nothing early, and the
watchdog's recovery_timeout still covers it. The master needs no change:
the reason is an explicit unhealthy fact (Eligible=false), shown in
volume status and the timeline, and fails over only to a qualified peer.

Fixes #133

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 14:11:05 -08:00
Languages
Go 84.6%
Rust 7.8%
Shell 2.7%
templ 1.6%
Java 1%
Other 2%