mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
bb377502ea907f66dba44731d23c4f73eff1d712
Review of #130 r3 (three P2s; the same class as r1/r2, so fixed structurally rather than per branch): - Controller: a supported snapshot that carries any superseded slot fact (older than the newest recorded for that replica, or equal-time with another incarnation) is a stale snapshot. It records nothing and no decision branch runs on it (readiness, endpoint refresh, rebalance, failover, fallback); any existing desired is kept, as for a stale authority basis. Fresh facts, including fresh unhealthy and expiry decisions, are unchanged. - Unsupported-volume gate: the current primary's own fresh slot fact is recorded for every unsupported volume, before the promotion-reason allow-list and concrete-placement filters, so ready reports and starts under any reason are counted. The promotion rules are unchanged. - Both gates decide after the blocking probe from the current primary's fresh slot read at that point (primaryBootGraceHoldsNow), so a newer unhealthy report or a heartbeat that expired during the probe is seen; the unsupported gate also skips if the authority line moved during the probe. Lock order unchanged: state under TopologyController.mu; the gates read the publisher line and the store snapshot (their own locks, 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%