Closed
Description
Describe the feature you'd like:
we'd like to support transfer-leader
command in curve tool
transfer-leader
is one of the commands to make configuration changes to a raft replication group.
- The implementation of the old tool is here:
Line 147 in 5e49aed
- The old command input and out put:
transfer-leader : transfer the leader of the copyset to the peer curve_ops_tool transfer-leader --example Example curve_ops_tool transfer-leader -logicalPoolId=1 -copysetId=10001 -peer=127.0.0.1:8080:0 -conf=127.0.0.1:8080:0,127.0.0.1:8081:0,127.0.0.1:8082:0 -max_retry=3 -timeout_ms=100 output: transfer leader ok
Teachability, Documentation, Adoption, Migration Strategy:
Refer to tool develop guide to get start, and paste the result of the command in pr.
Build compilation environment:https://github.com/opencurve/curve/blob/master/docs/cn/build_and_run.md