DenyReason

Why a candidate's RequestVote or PreVote was denied by the responding node.

A denial can have more than one of these at once, which is why the trace events carry a reasons: Set<DenyReason> rather than a single value (#2052). The vote decision is a conjunction; a candidate can fail several of its clauses on one ordinary trajectory — AlreadyVoted together with LogNotUpToDate is just a split vote against a lagging candidate — and reporting only the first makes every other failing clause unobservable through this channel, including §5.4.1.

Entries

Link copied to clipboard

The candidate's term is lower than the responder's current term.

Link copied to clipboard

The responder already voted for a different candidate in this term.

Link copied to clipboard

The candidate's log is less up-to-date than the responder's (Raft §5.4.1).

Link copied to clipboard

The responder recently heard from a leader and considers it alive.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.