KevinZTW opened a new pull request, #15610:
URL: https://github.com/apache/kafka/pull/15610
Currently, when we using `kafka-reassign-partitions` to move the log
directory, the output only indicates which replica's movement has successfully
started.
This PR propose to show more detailed information, helping end users
understand that the operation is proceeding as expected.
For example, if I have a mv.json as below, which move `t3-0`, `t3-1` to
different log directory
```json
{
"version":1,
"partitions":[
{
"topic":"t3","partition":0,"replicas":[1],"log_dirs":["/var/lib/kafka/data/logs"]
},
{ "topic":"t3","partition":1,"replicas":[1, 2,
3],"log_dirs":["/var/lib/kafka/data/logs", "/var/lib/kafka/data/logs2",
"/var/lib/kafka/data/logs2"] }
]
}
```
- origin output
```
Successfully started partition reassignments for t3-0,t3-1
Successfully started log directory moves for: t3-0-1,t3-1-1,t3-1-2,t3-1-3
```
- proposed output
```
Successfully started partition reassignments for t3-0,t3-1
Successfully started moving log directory to /var/lib/kafka/data/logs for
replica t3-0 with broker id: 1
Successfully started moving log directory to /var/lib/kafka/data/logs for
replica t3-1 with broker id: 1
Successfully started moving log directory to /var/lib/kafka/data/logs2 for
replica t3-1 with broker id: 2
Successfully started moving log directory to /var/lib/kafka/data/logs2 for
replica t3-1 with broker id: 3
```
### Committer Checklist (excluded from commit message)
- [ ] Verify design and implementation
- [ ] Verify test coverage and CI build status
- [ ] Verify documentation (including upgrade notes)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]