conduktor.io ↗

Kafka FindCoordinator Response Wire Format v5 — 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 · flexible
message_size int32 · 4B
correlation_id int32 · 4B
tagged var
FindCoordinatorResponse v5
ThrottleTimeMs int32 · 4B
Coordinators array
tagged var
Key string (compact)
NodeId int32 · 4B
Host string (compact)
Port int32 · 4B
ErrorCode int16 · 2B
ErrorMessage? string (compact)
tagged var

Schema & Example

Schema
{
  "ThrottleTimeMs": int32,
  "Coordinators": [{
      "Key": string,
      "NodeId": int32,
      "Host": string,
      "Port": int32,
      "ErrorCode": int16,
      "ErrorMessage": string?
  }]
}
Example
{
  "ThrottleTimeMs": 0,
  "Coordinators": [{
      "Key": "retention.ms",
      "NodeId": 1,
      "Host": "broker-1.kafka.local",
      "Port": 9092,
      "ErrorCode": 0,
      "ErrorMessage": null
  }]
}