mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
6989dfd8388f58bf66dd630021f0fd20b6102703
Review of #130 r4 (one P2): the production provider probes the current primary first, then the peers. If the current primary's frontend finished recovery and a newer ready heartbeat arrived during the peer queries, both gates ended its grace but still direct-reassigned from the probe's outdated Current.Ready=false. Both gates now go through probePromotionCandidatesCurrent: when the current primary's own fresh heartbeat advanced to ready (a newer fact or a new incarnation) while the probe ran and the probe said it was not ready, the probe is run once more and that fresh result decides. A heartbeat is never taken as frontend readiness: if the fresh probe still finds the frontend unready, the failover stands; a heartbeat already ready before the probe causes no re-probe. Refs #128 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%