Luke Chen created KAFKA-16425: --------------------------------- Summary: wrong output when running log dir movement with kafka-reassign-partitions command Key: KAFKA-16425 URL: https://issues.apache.org/jira/browse/KAFKA-16425 Project: Kafka Issue Type: Bug Reporter: Luke Chen Assignee: Cheng-Kai, Zhang
When running log dir movement with kafka-reassign-partitions command, the log output is like: {code:java} ./bin/kafka-reassign-partitions.sh --bootstrap-server localhost:9092 --reassignment-json-file /tmp/mv4.json --executeCurrent partition replica assignment{"version":1,"partitions":[{"topic":"t3","partition":0,"replicas":[2],"log_dirs":["any"]}]}Save this to use as the --reassignment-json-file option during rollback Successfully started partition reassignment for t3-0 Successfully started log directory move for: t3-0-2{code} Here, I'm doing the log dir for t3-0, from dir a to b, but it output with: _Successfully started log directory move for: t3-0-2_ This should be improved. reproduce step: 1. create a broker with 2 log dirs. Ex: log.dirs=/tmp/kraft-broker-logs,/tmp/kraft-broker-logs_jbod 2. create a topic with 1 partition, ex: "t3" 3. create a mv.json file to move t3-0 to kraft-broker-logs (or kraft-broker-logs_jbod): {"version":1, "partitions":[\{"topic":"t3","partition":0,"replicas":[2],"log_dirs":["/tmp/kraft-broker-logs"]}] } 4. check the script output -- This message was sent by Atlassian Jira (v8.20.10#820010)