ReadShareGroupStateSummary
This page encodes the smallest legal instance of the request and the response: numeric fields are zero, strings and byte arrays are empty, every array carries exactly one sample element, and any records field holds one empty 61-byte RecordBatch v2. Version 0 is a flexible version, so every struct is terminated by a uvarint tagged-field count and strings and arrays carry compact length-plus-one prefixes. Sizes below include the leading int32 size prefix.
- API key
- 87
- Encoded at
- v0
- Flexible versions
- 0+
- Headers
- req v2, resp v1
- Request versions
- 0
- Response versions
- 0
- Request size
- 45 bytes
- Response size
- 49 bytes
framerpc headerrequest bodyRecordBatchRecordresponse bodytagged_fields
Request
ReadShareGroupStateSummaryRequest v0, request header v2, 45 bytes on the wire
byte layout (45 bytes, 16 bytes per row)
0
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F
0000
0010
0020
object tree
ReadShareGroupStateSummaryRequest message v0 [0x0000, 45B] +-- Frame [0x0000, 4B] length-delimited framing | +-- size int32 = 41 [0x0000, 4B] number of bytes that follow, patched after encoding +-- RequestHeader v2 [0x0004, 11B] common request header | +-- request_api_key int16 = 87 (ReadShareGroupStateSummary) [0x0004, 2B] numeric id of the API being invoked | +-- request_api_version int16 = 0 [0x0006, 2B] version of the API being invoked | +-- correlation_id int32 = 0 [0x0008, 4B] echoed back by the broker in the response | +-- client_id nullable_string = "" (int16 len=0) [0x000c, 2B] always a non-flexible int16-prefixed string | +-- tagged_fields uvarint = 0 [0x000e, 1B] number of tagged fields in the header +-- ReadShareGroupStateSummaryRequest struct [0x000f, 30B] message body, version 0 +-- GroupId string = "" (compact, len+1=1) [0x000f, 1B] The group identifier. +-- Topics []ReadStateSummaryData = 1 element [0x0010, 28B] The data for the topics. | +-- length uvarint = 2 (compact, n+1) [0x0010, 1B] one sample element follows | +-- ReadStateSummaryData[0] ReadStateSummaryData = struct [0x0011, 27B] | +-- TopicId uuid = 00000000-0000-0000-0000-000000000000 [0x0011, 16B] The topic identifier. | +-- Partitions []PartitionData = 1 element [0x0021, 10B] The data for the partitions. | | +-- length uvarint = 2 (compact, n+1) [0x0021, 1B] one sample element follows | | +-- PartitionData[0] PartitionData = struct [0x0022, 9B] | | +-- Partition int32 = 0 [0x0022, 4B] The partition index. | | +-- LeaderEpoch int32 = 0 [0x0026, 4B] The leader epoch of the share-partition. | | +-- tagged_fields uvarint = 0 [0x002a, 1B] number of tagged fields in this struct | +-- tagged_fields uvarint = 0 [0x002b, 1B] number of tagged fields in this struct +-- tagged_fields uvarint = 0 [0x002c, 1B] number of tagged fields in this struct
kafka message schema (.json)
{ "apiKey": 87, "type": "request", "listeners": ["broker"], "name": "ReadShareGroupStateSummaryRequest", "validVersions": "0", "flexibleVersions": "0+", "latestVersionUnstable": true, "fields": [ { "name": "GroupId", "type": "string", "versions": "0+", "about":"The group identifier." }, { "name": "Topics", "type": "[]ReadStateSummaryData", "versions": "0+", "about": "The data for the topics.", "fields": [ { "name": "TopicId", "type": "uuid", "versions": "0+", "about": "The topic identifier." }, { "name": "Partitions", "type": "[]PartitionData", "versions": "0+", "about": "The data for the partitions.", "fields": [ { "name": "Partition", "type": "int32", "versions": "0+", "about": "The partition index." }, { "name": "LeaderEpoch", "type": "int32", "versions": "0+", "about": "The leader epoch of the share-partition." } ]} ]} ] }
Response
ReadShareGroupStateSummaryResponse v0, response header v1, 49 bytes on the wire
byte layout (49 bytes, 16 bytes per row)
0
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F
0000
0010
0020
0030
object tree
ReadShareGroupStateSummaryResponse message v0 [0x0000, 49B] +-- Frame [0x0000, 4B] length-delimited framing | +-- size int32 = 45 [0x0000, 4B] number of bytes that follow, patched after encoding +-- ResponseHeader v1 [0x0004, 5B] common response header | +-- correlation_id int32 = 0 [0x0004, 4B] matches the correlation_id of the request | +-- tagged_fields uvarint = 0 [0x0008, 1B] number of tagged fields in the header +-- ReadShareGroupStateSummaryResponse struct [0x0009, 40B] message body, version 0 +-- Results []ReadStateSummaryResult = 1 element [0x0009, 39B] The read results. | +-- length uvarint = 2 (compact, n+1) [0x0009, 1B] one sample element follows | +-- ReadStateSummaryResult[0] ReadStateSummaryResult = struct [0x000a, 38B] | +-- TopicId uuid = 00000000-0000-0000-0000-000000000000 [0x000a, 16B] The topic identifier. | +-- Partitions []PartitionResult = 1 element [0x001a, 21B] The results for the partitions. | | +-- length uvarint = 2 (compact, n+1) [0x001a, 1B] one sample element follows | | +-- PartitionResult[0] PartitionResult = struct [0x001b, 20B] | | +-- Partition int32 = 0 [0x001b, 4B] The partition index. | | +-- ErrorCode int16 = 0 [0x001f, 2B] The error code, or 0 if there was no error. | | +-- ErrorMessage string = "" (compact, len+1=1) [0x0021, 1B] The error message, or null if there was no error. | | +-- StateEpoch int32 = 0 [0x0022, 4B] The state epoch of the share-partition. | | +-- StartOffset int64 = 0 [0x0026, 8B] The share-partition start offset. | | +-- tagged_fields uvarint = 0 [0x002e, 1B] number of tagged fields in this struct | +-- tagged_fields uvarint = 0 [0x002f, 1B] number of tagged fields in this struct +-- tagged_fields uvarint = 0 [0x0030, 1B] number of tagged fields in this struct
kafka message schema (.json)
{ "apiKey": 87, "type": "response", "name": "ReadShareGroupStateSummaryResponse", "validVersions": "0", "flexibleVersions": "0+", // - NOT_COORDINATOR (version 0+) // - COORDINATOR_NOT_AVAILABLE (version 0+) // - COORDINATOR_LOAD_IN_PROGRESS (version 0+) // - GROUP_ID_NOT_FOUND (version 0+) // - UNKNOWN_TOPIC_OR_PARTITION (version 0+) // - FENCED_LEADER_EPOCH (version 0+) // - INVALID_REQUEST (version 0+) "fields": [ { "name": "Results", "type": "[]ReadStateSummaryResult", "versions": "0+", "about": "The read results.", "fields": [ { "name": "TopicId", "type": "uuid", "versions": "0+", "about": "The topic identifier." }, { "name": "Partitions", "type": "[]PartitionResult", "versions": "0+", "about" : "The results for the partitions.", "fields": [ { "name": "Partition", "type": "int32", "versions": "0+", "about": "The partition index." }, { "name": "ErrorCode", "type": "int16", "versions": "0+", "about": "The error code, or 0 if there was no error." }, { "name": "ErrorMessage", "type": "string", "versions": "0+", "nullableVersions": "0+", "default": "null", "about": "The error message, or null if there was no error." }, { "name": "StateEpoch", "type": "int32", "versions": "0+", "about": "The state epoch of the share-partition." }, { "name": "StartOffset", "type": "int64", "versions": "0+", "about": "The share-partition start offset." } ]} ]} ] }