Skip to content
m manifester.io
All Kafka APIs

ListPartitionReassignments

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
46
Encoded at
v0
Flexible versions
0+
Headers
req v2, resp v1
Request versions
0
Response versions
0
Request size
28 bytes
Response size
41 bytes
framerpc headerrequest bodyRecordBatchRecordresponse bodytagged_fields

Request

ListPartitionReassignmentsRequest v0, request header v2, 28 bytes on the wire

byte layout (28 bytes, 16 bytes per row)

0
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F
0000
0010

object tree

ListPartitionReassignmentsRequest                message v0                                                             [0x0000, 28B]
+-- Frame                                                                                                               [0x0000, 4B]   length-delimited framing
|   +-- size                                     int32                               = 24                               [0x0000, 4B]   number of bytes that follow, patched after encoding
+-- RequestHeader                                v2                                                                     [0x0004, 11B]  common request header
|   +-- request_api_key                          int16                               = 46 (ListPartitionReassignments)  [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
+-- ListPartitionReassignmentsRequest            struct                                                                 [0x000f, 13B]  message body, version 0
    +-- TimeoutMs                                int32                               = 0                                [0x000f, 4B]   The time in ms to wait for the request to complete.
    +-- Topics                                   []ListPartitionReassignmentsTopics  = 1 element                        [0x0013, 8B]   The topics to list partition reassignments for, or null to list everything.
    |   +-- length                               uvarint                             = 2 (compact, n+1)                 [0x0013, 1B]   one sample element follows
    |   +-- ListPartitionReassignmentsTopics[0]  ListPartitionReassignmentsTopics    = struct                           [0x0014, 7B]
    |       +-- Name                             string                              = "" (compact, len+1=1)            [0x0014, 1B]   The topic name.
    |       +-- PartitionIndexes                 []int32                             = 1 element                        [0x0015, 5B]   The partitions to list partition reassignments for.
    |       |   +-- length                       uvarint                             = 2 (compact, n+1)                 [0x0015, 1B]   one sample element follows
    |       |   +-- int32[0]                     int32                               = 0                                [0x0016, 4B]
    |       +-- tagged_fields                    uvarint                             = 0                                [0x001a, 1B]   number of tagged fields in this struct
    +-- tagged_fields                            uvarint                             = 0                                [0x001b, 1B]   number of tagged fields in this struct

kafka message schema (.json)

{
  "apiKey": 46,
  "type": "request",
  "listeners": ["broker", "controller"],
  "name": "ListPartitionReassignmentsRequest",
  "validVersions": "0",
  "flexibleVersions": "0+",
  "fields": [
    { "name": "TimeoutMs", "type": "int32", "versions": "0+", "default": "60000",
      "about": "The time in ms to wait for the request to complete." },
    { "name": "Topics", "type": "[]ListPartitionReassignmentsTopics", "versions": "0+", "nullableVersions": "0+", "default": "null",
      "about": "The topics to list partition reassignments for, or null to list everything.", "fields": [
      { "name": "Name", "type": "string", "versions": "0+", "entityType": "topicName",
        "about": "The topic name." },
      { "name": "PartitionIndexes", "type": "[]int32", "versions": "0+",
        "about": "The partitions to list partition reassignments for." }
    ]}
  ]
}

Response

ListPartitionReassignmentsResponse v0, response header v1, 41 bytes on the wire

byte layout (41 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

ListPartitionReassignmentsResponse                   message v0                                               [0x0000, 41B]
+-- Frame                                                                                                     [0x0000, 4B]   length-delimited framing
|   +-- size                                         int32                           = 37                     [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
+-- ListPartitionReassignmentsResponse               struct                                                   [0x0009, 32B]  message body, version 0
    +-- ThrottleTimeMs                               int32                           = 0                      [0x0009, 4B]   The duration in milliseconds for which the request was throttled due to a q...
    +-- ErrorCode                                    int16                           = 0                      [0x000d, 2B]   The top-level error code, or 0 if there was no error.
    +-- ErrorMessage                                 string                          = "" (compact, len+1=1)  [0x000f, 1B]   The top-level error message, or null if there was no error.
    +-- Topics                                       []OngoingTopicReassignment      = 1 element              [0x0010, 24B]  The ongoing reassignments for each topic.
    |   +-- length                                   uvarint                         = 2 (compact, n+1)       [0x0010, 1B]   one sample element follows
    |   +-- OngoingTopicReassignment[0]              OngoingTopicReassignment        = struct                 [0x0011, 23B]
    |       +-- Name                                 string                          = "" (compact, len+1=1)  [0x0011, 1B]   The topic name.
    |       +-- Partitions                           []OngoingPartitionReassignment  = 1 element              [0x0012, 21B]  The ongoing reassignments for each partition.
    |       |   +-- length                           uvarint                         = 2 (compact, n+1)       [0x0012, 1B]   one sample element follows
    |       |   +-- OngoingPartitionReassignment[0]  OngoingPartitionReassignment    = struct                 [0x0013, 20B]
    |       |       +-- PartitionIndex               int32                           = 0                      [0x0013, 4B]   The index of the partition.
    |       |       +-- Replicas                     []int32                         = 1 element              [0x0017, 5B]   The current replica set.
    |       |       |   +-- length                   uvarint                         = 2 (compact, n+1)       [0x0017, 1B]   one sample element follows
    |       |       |   +-- int32[0]                 int32                           = 0                      [0x0018, 4B]
    |       |       +-- AddingReplicas               []int32                         = 1 element              [0x001c, 5B]   The set of replicas we are currently adding.
    |       |       |   +-- length                   uvarint                         = 2 (compact, n+1)       [0x001c, 1B]   one sample element follows
    |       |       |   +-- int32[0]                 int32                           = 0                      [0x001d, 4B]
    |       |       +-- RemovingReplicas             []int32                         = 1 element              [0x0021, 5B]   The set of replicas we are currently removing.
    |       |       |   +-- length                   uvarint                         = 2 (compact, n+1)       [0x0021, 1B]   one sample element follows
    |       |       |   +-- int32[0]                 int32                           = 0                      [0x0022, 4B]
    |       |       +-- tagged_fields                uvarint                         = 0                      [0x0026, 1B]   number of tagged fields in this struct
    |       +-- tagged_fields                        uvarint                         = 0                      [0x0027, 1B]   number of tagged fields in this struct
    +-- tagged_fields                                uvarint                         = 0                      [0x0028, 1B]   number of tagged fields in this struct

kafka message schema (.json)

{
  "apiKey": 46,
  "type": "response",
  "name": "ListPartitionReassignmentsResponse",
  "validVersions": "0",
  "flexibleVersions": "0+",
  "fields": [
    { "name": "ThrottleTimeMs", "type": "int32", "versions": "0+",
      "about": "The duration in milliseconds for which the request was throttled due to a quota violation, or zero if the request did not violate any quota." },
    { "name": "ErrorCode", "type": "int16", "versions": "0+",
      "about": "The top-level error code, or 0 if there was no error." },
    { "name": "ErrorMessage", "type": "string", "versions": "0+", "nullableVersions": "0+",
      "about": "The top-level error message, or null if there was no error." },
    { "name": "Topics", "type": "[]OngoingTopicReassignment", "versions": "0+",
      "about": "The ongoing reassignments for each topic.", "fields": [
      { "name": "Name", "type": "string", "versions": "0+", "entityType": "topicName",
        "about": "The topic name." },
      { "name": "Partitions", "type": "[]OngoingPartitionReassignment", "versions": "0+",
        "about": "The ongoing reassignments for each partition.", "fields": [
        { "name": "PartitionIndex", "type": "int32", "versions": "0+",
          "about": "The index of the partition." },
        { "name": "Replicas", "type": "[]int32", "versions": "0+", "entityType": "brokerId",
          "about": "The current replica set." },
        { "name": "AddingReplicas", "type": "[]int32", "versions": "0+", "entityType": "brokerId",
          "about": "The set of replicas we are currently adding." },
        { "name": "RemovingReplicas", "type": "[]int32", "versions": "0+", "entityType": "brokerId",
          "about": "The set of replicas we are currently removing." }
      ]}
    ]}
  ]
}