conduktor.io ↗

Kafka FindCoordinator Response Wire Format v0 — Binary Protocol Layout

What is FindCoordinator?

The first step before any group or transaction operation: locates the group coordinator or transaction coordinator. A COORDINATOR_NOT_AVAILABLE response means the __consumer_offsets or __transaction_state partition leader is still being elected; retry with backoff.

Related Errors

COORDINATOR_NOT_AVAILABLE · GROUP_AUTHORIZATION_FAILED · INVALID_REQUEST · TRANSACTIONAL_ID_AUTHORIZATION_FAILED

Wire Diagram

Response Header
message_size int32 · 4B
correlation_id int32 · 4B
FindCoordinatorResponse v0
ErrorCode int16 · 2B
NodeId int32 · 4B
Host string
Port int32 · 4B

Schema & Example

Schema
{
  "ErrorCode": int16,
  "NodeId": int32,
  "Host": string,
  "Port": int32
}
Example
{
  "ErrorCode": 0,
  "NodeId": 1,
  "Host": "broker-1.kafka.local",
  "Port": 9092
}