conduktor.io ↗

Kafka EndQuorumEpoch Response Wire Format v0 — Binary Protocol Layout

What is EndQuorumEpoch?

A stepping-down KRaft leader sends this to prompt other voters to start a new election immediately. Without it, the quorum would wait for the election timeout, making controller failover during planned maintenance much slower.

Related Errors

INCONSISTENT_VOTER_SET

Wire Diagram

Response Header
message_size int32 · 4B
correlation_id int32 · 4B
EndQuorumEpochResponse v0
ErrorCode int16 · 2B
Topics array
TopicName string
Partitions array
PartitionIndex int32 · 4B
ErrorCode int16 · 2B
LeaderId int32 · 4B
LeaderEpoch int32 · 4B

Schema & Example

Schema
{
  "ErrorCode": int16,
  "Topics": [{
      "TopicName": string,
      "Partitions": [{
          "PartitionIndex": int32,
          "ErrorCode": int16,
          "LeaderId": int32,
          "LeaderEpoch": int32
      }]
  }]
}
Example
{
  "ErrorCode": 0,
  "Topics": [{
      "TopicName": "orders",
      "Partitions": [{
          "PartitionIndex": 3,
          "ErrorCode": 0,
          "LeaderId": 1,
          "LeaderEpoch": 17
      }]
  }]
}