Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[curve/toos-v2]: add check-copyset #2354

Closed
Cyber-SiKu opened this issue Mar 30, 2023 · 3 comments
Closed

[curve/toos-v2]: add check-copyset #2354

Cyber-SiKu opened this issue Mar 30, 2023 · 3 comments
Assignees
Labels
enhancement improve feature good first issue Good for newcomers

Comments

@Cyber-SiKu
Copy link
Contributor

Cyber-SiKu commented Mar 30, 2023

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

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

  • The implementation of the old tool is here:
    int CopysetCheck::CheckCopyset() {
    auto res = core_->CheckOneCopyset(FLAGS_logicalPoolId, FLAGS_copysetId);
    int ret = 0;
    if (res == CheckResult::kHealthy) {
    std::cout << "Copyset is healthy!" << std::endl;
    } else {
    ret = -1;
    std::cout << "Copyset is not healthy!" << std::endl;
    }
    if (FLAGS_detail) {
    std::cout << core_->GetCopysetDetail() << std::endl;
    PrintExcepChunkservers();
    }
    return ret;
    }
  • The old command input and out put:
curve_ops_tool check-copyset -logicalPoolId=*** -copysetId=***

-------
output:
Copyset is healthy!

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 (更多上下文/截图)

@iiiuwioajdks
Copy link

This task looks interesting,I want to complete this task, can you assign it to me?

@zhanghuidinah
Copy link
Member

@Cyber-SiKu
Copy link
Contributor Author

@iiiuwioajdks How's the progress?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement improve feature good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants