Skip to content

[curve/toos-v2]: add copysets-status #2347

Closed
@Cyber-SiKu

Description

@Cyber-SiKu

Is your feature request related to a problem? (你需要的功能是否与某个问题有关?)

we'd like to support bs status copyset command in curve tool

  • The implementation of the old tool is here:
    int CopysetCheck::CheckCopysetsInCluster() {
    int res = core_->CheckCopysetsInCluster();
    if (res == 0) {
    std::cout << "Copysets are healthy!" << std::endl;
    } else {
    std::cout << "Copysets not healthy!" << std::endl;
    }
    PrintStatistic();
    if (FLAGS_detail) {
    PrintDetail();
    }
    return res;
    }
  • The old command input and out put:
curve_ops_tool copysets-status

-------
output:
Copysets are healthy!
total copysets: ***, unhealthy copysets: ***, unhealthy_ratio: ***%

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

Describe the solution you'd like (描述你期望的解决方法)

Add subcommand clinet to curve bs list.

Describe alternatives you've considered (描述你想到的折衷方案)

Additional context/screenshots (更多上下文/截图)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions