AppendEntriesEntryTermOutOfRange

RaftEngine.batchRefusal bound 3 (#1832): an AppendEntries carrying an entry whose term is outside 0..term — a term no honest leader could have stamped, since no entry may carry a term above the leader's own.

The §5.4.1 lever: RaftState.lastLogPosition is built from the last entry and up-to-dateness compares (term, index) lexicographically, so an accepted entry at Long.MAX_VALUE makes the victim unbeatable by any honest node — it then wins every election it enters while its log does not hold the committed entries a legitimate leader must.

Two arms under one gate, for the reason set out at AppendEntriesPrevLogIndexOutOfRange; here mutual exclusivity rests on term >= 0, which the dispatch boundary's ImplausibleNegativeTerm has already established for any frame that reaches a handler.

Properties

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

The RaftMetric.WedgeSuspected.Gate a refusal at this gate is reported under, or null when this gate feeds no wedge diagnosis at all.