struct
Raft::RPC::PreVote
- Raft::RPC::PreVote
- Struct
- Value
- Object
Overview
Sent before a real election to check if the candidate would win, without incrementing its term. Prevents partitioned nodes from disrupting the cluster with inflated terms.
Defined in:
raft/rpc.crConstructors
Instance Method Summary
-
#candidate_id : String
The ID of the candidate.
-
#last_log_index : UInt64
Index of the candidate's last log entry.
-
#last_log_term : UInt64
Term of the candidate's last log entry.
-
#term : UInt64
The speculative next term (current term + 1, not yet committed).
- #type : Type
Constructor Detail
def self.new(term : UInt64, candidate_id : String, last_log_index : UInt64, last_log_term : UInt64)
#