mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 10:07:28 +01:00
4c84545c84d7a71cedf99a866b4daf60e336eb99
Review of #130 r2 (three P2s): - The unsupported-volume gate records the current primary's own fresh slot fact on every pass (RecordPrimaryBootFact), not only when a promotion is considered, so a ready report ends the grace and ready restarts count toward flap history. - The grace decision is ordered like the history: a superseded fact (older than the newest recorded one, or equal-time with another incarnation) is not a decision input. The decision follows the newest recorded fact (its incarnation, placeability and grace clock), and a superseded fact's endpoint is never used for a refresh. A fresh fact still needs to be placeable and not ready. - The cap uses the observation store's effective freshness window (FreshnessConfig.EffectiveFreshnessWindow), so an omitted window caps at its 10s default; an unset or nonpositive grace takes the window. Lock order unchanged: state under TopologyController.mu; the gate reads the store snapshot (its own lock, released) before calling the controller; no new locks. 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%