mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-06 11:07:31 +01:00
4a7e00dc9952109f3838f49b3b6004dbc928e56c
#128 rule 6 (claude05's rulings 21:07Z): declarations with the decision stubbed, plus the controls. - proto: HeartbeatSlot.unhealthy_reason (13); StatusResponse .unhealthy_replicas (9) with ReplicaUnhealthy (regenerated with the checked-in generator versions; the gRPC file is unchanged). - authority: SlotFact/HeartbeatSlot.UnhealthyReason (raw fact). - volume: the recovery watchdog type and Host wiring (primary assignment, supporting admission, heartbeat Eligible/UnhealthyReason, /status UnhealthyReason and CatchUp), --recover-timeout on blockvolume (default 30s, logged at start); its decision is stubbed here. - controls: a primary-assigned not-ready replica past the timeout reports Eligible=false + recovery_timeout; ready clears it and disarms the watchdog, a new primary epoch re-arms it; the G1 latch reports role_admission_failed; /status shows the reason and a supporting replica's catch-up state; the master promotes nobody without a qualified peer and shows the reason in volume status and as replica_unhealthy / replica_unhealthy_cleared events. Controls that pass on both sides: a supporting replica is never flagged; an unhealthy primary fails over at once to a qualified peer. Refs #128 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Languages
Go
84.8%
Rust
7.6%
Shell
2.7%
templ
1.5%
Java
0.9%
Other
2.3%