mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
3f73b56f1880d8e10e7dc9342f233d730aa5b002
#133 (follow-up to #128 rule 6): wiring with the classifier stubbed, plus controls. - volume: UnhealthyWALCorrupt / UnhealthyIOError; LocalRecoveryHealthReason (stubbed here: classifies nothing); Host.ReportLocalRecoveryFailure records the classified reason, cleared by ClearLocalReadinessBlock; the watchdog reports a recorded local failure for a primary-assigned replica at once (after the G1 latch, before readiness and the timeout). - blockvolume: a failed durable RecoverVolume calls ReportLocalRecoveryFailure(recErr) next to BlockLocalReadiness. - controls: the classifier maps WALIntegrity (typed or the sentinel, wrapped or not) to wal_corrupt, SubstrateIO / fs.PathError / io.ErrUnexpectedEOF / EIO to io_error, and anything else (WALRecycled, untyped) to nothing; the real chain (a corrupted smartwal store -> durable.Recover -> ReportLocalRecoveryFailure) makes a primary-assigned replica report wal_corrupt at once, cleared by a clean recovery; a replica that is not primary-assigned is not flagged; an unclassified failure reports nothing early and recovery_timeout still covers it. Refs #133 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Languages
Go
84.5%
Rust
7.9%
Shell
2.7%
templ
1.6%
Java
1%
Other
2%