mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 18:47:20 +01:00
The promotion gate (one function: the probe round's answers -> the allowed replica and its evidence) now covers every replicated volume, RF2 included: on main RF2 and every observation-fed failover promoted on heartbeat readiness with no evidence of the candidate's data. The gate puts its evidence on the slot it allows; the controller's failover and rebalance carry it and publish nothing without it. The legacy PolicyOwner (no production caller) is deleted. Failback is the operator's planned move through the gate: the target is probed by the round, and the move is allowed only when the target is in every acknowledgement set (sync_all at any replica count, sync_quorum with RF2); RF3 sync_quorum (needs a seal) and best_effort (forced only) are refused with typed errors. About forty tests encoded the evidence-free decision. Their subjects are unchanged; each now gets the candidate's evidence the way the gate gives it (the controller's candidate helper, the convergence snapshots, a stand-in gate sink for the observation-fed routes, a static round answer for the RF2 and failback tests). None is skipped or loosened. New: ready replicas without the gate's evidence promote nothing; RF2 promotes on a ready answer and not without one; the planned-move guard, one row per ack profile and replica count. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>