...
1// AlterPartitionAssignmentsRequest, proposed in KIP-455 and implemented in
2// Kafka 2.4.0, is a request to reassign partitions to certain brokers.
3//
4// ACL wise, this requires ALTER on CLUSTER.
5AlterPartitionAssignmentsRequest => key 45, max version 0, flexible v0+, admin
6 TimeoutMillis(60000)
7 // Topics are topics for which to reassign partitions of.
8 Topics: [=>]
9 // Topic is a topic to reassign the partitions of.
10 Topic: string
11 // Partitions contains partitions to reassign.
12 Partitions: [=>]
13 // Partition is a partition to reassign.
14 Partition: int32
15 // Replicas are replicas to place the partition on, or null to
16 // cancel a pending reassignment of this partition.
17 Replicas: nullable[int32]
18
19// AlterPartitionAssignmentsResponse is returned for an AlterPartitionAssignmentsRequest.
20AlterPartitionAssignmentsResponse =>
21 ThrottleMillis
22 // ErrorCode is any global (applied to all partitions) error code.
23 ErrorCode: int16
24 // ErrorMessage is any global (applied to all partitions) error message.
25 ErrorMessage: nullable-string
26 // Topics contains responses for each topic requested.
27 Topics: [=>]
28 // Topic is the topic being responded to.
29 Topic: string
30 // Partitions contains responses for partitions.
31 Partitions: [=>]
32 // Partition is the partition being responded to.
33 Partition: int32
34 // ErrorCode is the error code returned for partition reassignments.
35 //
36 // REQUEST_TIMED_OUT is returned if the request timed out.
37 //
38 // NOT_CONTROLLER is returned if the request was not issued to a Kafka
39 // controller.
40 //
41 // CLUSTER_AUTHORIZATION_FAILED is returned if the client is not
42 // authorized to reassign partitions.
43 //
44 // NO_REASSIGNMENT_IN_PROGRESS is returned for partition reassignment
45 // cancellations when the partition was not being reassigned.
46 //
47 // UNKNOWN_TOPIC_OR_PARTITION is returned if the broker does not know of
48 // the requested topic or the topic is being deleted.
49 ErrorCode: int16
50 // ErrorMessage is an informative message if the partition reassignment failed.
51 ErrorMessage: nullable-string
View as plain text