What is ListOffsets?
Resolves earliest, latest, or timestamp-based offsets, and powers the lag computation in kafka-consumer-groups.sh. Timestamp-based lookups map to the largest offset whose timestamp is <= the given value, which is how you rewind to a point in time after an incident.
Wire Diagram
Response Header
message_size
int32 · 4B
correlation_id
int32 · 4B
ListOffsetsResponse v3
ThrottleTimeMs
int32 · 4B
Name
string
PartitionIndex
int32 · 4B
ErrorCode
int16 · 2B
Timestamp
int64 · 8B
Offset
int64 · 8B
Schema & Example
Schema { "ThrottleTimeMs": int32, "Topics": [{ "Name": string, "Partitions": [{ "PartitionIndex": int32, "ErrorCode": int16, "Timestamp": int64, "Offset": int64 }] }] }
Example { "ThrottleTimeMs": 0, "Topics": [{ "Name": "orders", "Partitions": [{ "PartitionIndex": 3, "ErrorCode": 0, "Timestamp": 1711648200000, "Offset": 284729 }] }] }