What is AlterReplicaLogDirs?
Moves replicas to a different disk on the same broker via kafka-reassign-partitions.sh, rebalancing disk usage without cross-broker data movement. The move is asynchronous; use DescribeLogDirs to monitor progress by checking the futureLogDir field.
Wire Diagram
Response Header
message_size
int32 · 4B
correlation_id
int32 · 4B
AlterReplicaLogDirsResponse v1
ThrottleTimeMs
int32 · 4B
TopicName
string
PartitionIndex
int32 · 4B
ErrorCode
int16 · 2B
Schema & Example
Schema { "ThrottleTimeMs": int32, "Results": [{ "TopicName": string, "Partitions": [{ "PartitionIndex": int32, "ErrorCode": int16 }] }] }
Example { "ThrottleTimeMs": 0, "Results": [{ "TopicName": "orders", "Partitions": [{ "PartitionIndex": 3, "ErrorCode": 0 }] }] }