What is Vote?
A candidate KRaft controller sends this to other quorum voters to request a vote during leader election. High Vote request rates in controller logs indicate quorum instability, possibly from network partitions or GC pauses causing missed heartbeats.
Wire Diagram
Request Header · flexible
message_size
int32 · 4B
api_key
int16 · 2B
api_version
int16 · 2B
correlation_id
int32 · 4B
client_id
string (compact)
tagged
var
VoteRequest v0
ClusterId?
string (compact)
tagged
var
TopicName
string (compact)
tagged
var
PartitionIndex
int32 · 4B
ReplicaEpoch
int32 · 4B
ReplicaId
int32 · 4B
LastOffsetEpoch
int32 · 4B
LastOffset
int64 · 8B
tagged
var
Schema & Example
Schema { "ClusterId": string?, "Topics": [{ "TopicName": string, "Partitions": [{ "PartitionIndex": int32, "ReplicaEpoch": int32, "ReplicaId": int32, "LastOffsetEpoch": int32, "LastOffset": int64 }] }] }
Example { "ClusterId": "dQw4w9WgXcQ", "Topics": [{ "TopicName": "orders", "Partitions": [{ "PartitionIndex": 3, "ReplicaEpoch": 12, "ReplicaId": -1, "LastOffsetEpoch": 12, "LastOffset": 150382 }] }] }