mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 10:07:28 +01:00
5fb4fccd858188d0cb4546e0c418e644ff92fa1a
A line names how it made its primary the primary: BOOTSTRAP (the volume's first primary), PROMOTION (with the gate's evidence: the target's durable LSN and its epoch-table row there) or FORCED. The one mint refuses a reassign without a kind, the kind and evidence are kept on the durable authority record so a replayed line carries them, and AssignmentFact carries them to the target. The target adopts the primary role of a replicated volume only if its own store still shows what was probed: a replay of an epoch it adopted needs a valid epoch table; BOOTSTRAP needs no data; PROMOTION needs a valid table, a durable end at or above the probed LSN and the probed row at that LSN (a tail beyond it is its own log); FORCED adopts. A line without a kind to a node holding data is refused, except a store from before the epoch table replaying the line of its own durable floor (the upgrade). A refusal latches the role admission failure (the slot becomes ineligible), and the next round shows the store's real end and row. A single-replica workspace move keeps its own start check. Red: the promotion adoption trace (a store replaced between the line and its adoption, an acknowledged block lost) fails on main and passes; one row per guard of the adoption check; the mint refuses a kind-less reassign. 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%