Expand description
Raft event loop — drives MultiRaft ticks and dispatches messages over the transport.
Split across files:
loop_core:RaftLoopstruct, constructors, builders, public API (propose,propose_conf_change,group_statuses), and the mainrunshutdown-driven loop.tick: one iteration of the tick pipeline — drive MultiRaft, dispatch outbound AE/RV, apply committed entries, promote caught-up learners.handle_rpc: inbound RPC routing (impl RaftRpcHandler). TheJoinRequestarm delegates tojoin.join: async server-sideJoinRequestorchestration — register peer, proposeAddLearneron every group, wait for commit, broadcast topology, persist catalog, build the wire response.
Re-exports§
pub use loop_core::CommitApplier;pub use loop_core::RaftLoop;pub use loop_core::VShardEnvelopeHandler;
Modules§
- handle_
rpc - Inbound Raft RPC dispatch —
impl RaftRpcHandler for RaftLoop. - join
- Server-side
JoinRequestorchestration. - loop_
core RaftLoopstruct, constructors, top-level run loop, and thin wrappers overMultiRaftproposal APIs. The tick body lives insuper::tick; the inbound-RPC handler lives insuper::handle_rpc; the async join orchestration lives insuper::join.- tick
- Single tick of the Raft event loop.