Skip to content

[curve tool]: implement transfer-leader commnad #2022

Closed
@ilixiaocui

Description

@ilixiaocui

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:
    int CurveCli::TransferLeader() {
  • 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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions