ipfs-cluster/consensus/raft
Wyatt 47b744f1c0 ipfs-cluster-service state upgrade cli command
ipfs-cluster-service now has a migration subcommand that upgrades
    persistant state snapshots with an out-of-date format version to the
    newest version of raft state. If all cluster members shutdown with
    consistent state, upgrade ipfs-cluster, and run the state upgrade command,
    the new version of cluster will be compatible with persistent storage.
    ipfs-cluster now validates its persistent state upon loading it and exits
    with a clear error in the case the state format version is not up to date.

    Raft snapshotting is enforced on all shutdowns and the json backup is no
    longer run.  This commit makes use of recent changes to libp2p-raft
    allowing raft states to implement their own marshaling strategies. Now
    mapstate handles the logic for its (de)serialization.  In the interest of
    supporting various potential upgrade formats the state serialization
    begins with a varint (right now one byte) describing the version.

    Some go tests are modified and a go test is added to cover new ipfs-cluster
    raft snapshot reading functions.  Sharness tests are added to cover the
    state upgrade command.
2017-11-28 22:35:48 -05:00
..
config_test.go Fix #139: Update cluster to Raft 1.0.0 2017-11-01 12:17:33 +01:00
config.go Fix #219: WIP: Remove duplicate peer accounting 2017-11-08 20:04:04 +01:00
consensus_test.go ipfs-cluster-service state upgrade cli command 2017-11-28 22:35:48 -05:00
consensus.go Cluster: Fix libp2p host getting shutdown in the middle of peer removal 2017-11-15 02:33:46 +01:00
data_helper_test.go Raft: improve test error message 2017-11-14 12:31:58 +01:00
data_helper.go Raft: do not ever remove state, rename it and leave it around 2017-11-13 18:18:52 +01:00
log_op_test.go Issue #131: Improvements adding and removing 2017-11-01 13:00:32 +01:00
log_op.go Fix #219: WIP: Remove duplicate peer accounting 2017-11-08 20:04:04 +01:00
logging.go Fix #139: Update cluster to Raft 1.0.0 2017-11-01 12:17:33 +01:00
raft.go ipfs-cluster-service state upgrade cli command 2017-11-28 22:35:48 -05:00