You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Raft: record that the legacy-ledger migration finished #2106
Under Raft, the upgrade that binds ledgers created before name bindings (migrate_legacy) runs on every newly elected leader (fluree-db-consensus/src/raft/embedded.rs), because only a leader can propose and nothing records that it has finished. Each run scans every record in the replicated state and reads the binding of each legacy-fenced name; it proposes nothing once everything is bound.
f9400c5 (#1980) fixed the correctness problem a rerun had (a branch drop interrupted between unlisting the branch and deleting its record was re-listed live). What remains is the scan on every election.
Recording in the replicated state that the migration finished, as the @format item does on DynamoDB, would skip it. That needs a new Raft command and a change to the snapshot shape, which is positional, so it needs a versioned snapshot type like NameServiceStateV1.
Activity