Expand description
Core data types for the KRaft consensus state machine (KIP-595/996).
Pure, sans-IO: no clock, no wire, no log bytes.
Structs§
- LogOffset
Metadata - A log position: an offset together with the leader epoch that produced it.
- NodeId
- A broker, node, replica, or controller identifier.
- Quorum
State - The durable quorum state: the logical content of the
quorum-statefile. - Replica
Key - Identifies a voter by node id and directory id, as Kafka’s
ReplicaKeydoes. - SimInstant
- A simulated or logical instant in milliseconds.
Traits§
- LogView
- Read-only view of the local replicated log that the state machine uses.
Type Aliases§
- Epoch
- Consensus epoch, always non-negative; the wire leader epoch is
krabka_ids::LeaderEpoch.