Raft distributed consensus algorithm implemented in Rust.
bytes::Bytes
is used for protos if feature protobuf-codec is enabled (by default) (#438)StatusRef
that doesn't clone. (https://github.com/pingcap/raft-rs/pull/227)protobuf
dependency to match important downstreams. (https://github.com/pingcap/raft-rs/pull/181)Progress
collections inside ProgressSet
. (https://github.com/pingcap/raft-rs/pull/108)Raft::new()
now returns a Result
. (https://github.com/pingcap/raft-rs/pull/122)Progress.is_learner
field. Check via function in ProgressSet
instead. (https://github.com/pingcap/raft-rs/pull/119)Ready
fields. (https://github.com/pingcap/raft-rs/pull/120)ProgressSet
. (https://github.com/pingcap/raft-rs/pull/121)check_quorum
wrong. (https://github.com/pingcap/raft-rs/pull/141)single_mem_node
example. (https://github.com/pingcap/raft-rs/pull/162)FxHash
. (https://github.com/pingcap/raft-rs/pull/160)handle_transfer_leader
. (https://github.com/pingcap/raft-rs/pull/165)#[feature(_)]
so that we can build on stable cleanly. (https://github.com/pingcap/raft-rs/pull/180)Please note: This is a point release intended for TiKV. It's not intended for general usage. We recommend you use 0.5.0.
fail-rs
based tests. (https://github.com/pingcap/raft-rs/pull/114)criterion
. (https://github.com/pingcap/raft-rs/pull/110)RUST_LOG=raft=info
. (https://github.com/pingcap/raft-rs/pull/103)log
dependency. (https://github.com/pingcap/raft-rs/pull/116)leader_id
when becoming precandidate to resolve prevote
and check_quorum
compatability (https://github.com/pingcap/raft-rs/pull/84)Default
for Config
and fleshed out an example (https://github.com/pingcap/raft-rs/pull/81)Send
(https://github.com/pingcap/raft-rs/pull/67)