mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 02:27:26 +01:00
81575168cc73d2f374ecfa5968c3c837531494d1
Volume: a replica holding the PRIMARY assignment that has not produced the engine's promotion-ready fact within --recover-timeout (default 30s, from the primary assignment in this incarnation) reports Eligible=false with unhealthy_reason=recovery_timeout instead of staying silently not-ready. The G1 role-admission latch of a primary-assigned replica reports role_admission_failed. A fresh ready fact clears it (Eligible=true, reason empty) and disarms the watchdog until the next primary epoch. Supporting replicas are never flagged; /status shows their catch-up state (elapsed, lag). Master: an explicit unhealthy slot is ineligible, so it gets no boot grace and fails over at once to a peer that passes the promotion evidence gate; with no qualified peer nobody is promoted. The reason is listed in QueryVolumeStatus (unhealthy_replicas) and recorded as replica_unhealthy / replica_unhealthy_cleared events when a slot's stored reason changes. wal_corrupt and io_error need typed failures from the durable recovery path: tracked as a follow-up issue. Lock order: the watchdog has its own mutex and calls nothing while holding it; the master's transition check reads the observation store before and after ingest and appends to the event ring, holding neither. Refs #128 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Languages
Go
84.6%
Rust
7.8%
Shell
2.7%
templ
1.6%
Java
1%
Other
2%