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

[feat]tools-v2: add bs check consistency #2782

Merged
merged 1 commit into from
Oct 27, 2023

Conversation

victorseptember
Copy link
Contributor

What problem does this PR solve?

Issue Number: #2351

Problem Summary: Add bs check consistency command.

What is changed and how it works?

What's Changed:
modify tools-v2/README.md
modify tools-v2/internal/error/error.go
modify tools-v2/pkg/cli/command/curvebs/check/check.go
modify tools-v2/pkg/cli/command/curvebs/query/seginfo/seginfo.go
modify tools-v2/pkg/cli/command/curvebs/status/copyset/agent.go
add tools-v2/pkg/cli/command/curvebs/check/consistency/consistency.go

How it Works:
Usage:

curve bs check consistency --path /test

Output:

+--------+--------+------------+
|  NAME  | STATUS |   EXPLAIN  |
+--------+--------+------------+
| /test  |  ok    |      -     |
+--------+--------+------------+

Side effects(Breaking backward compatibility? Performance regression?):

Check List

  • Relevant documentation/comments is changed or added
  • I acknowledge that all my contributions will be made under the project's license

@wuhongsong
Copy link
Contributor

cicheck

@victorseptember
Copy link
Contributor Author

cicheck

1 similar comment
@Cyber-SiKu
Copy link
Contributor

cicheck

@@ -0,0 +1,183 @@
/*
* Copyright (c) 2022 NetEase Inc.
*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move to pkg/cli/command/curvebs/query/chunkhash?

Comment on lines 91 to 95
LogicPoolId : &logicalpoolid,
CopysetId : &copysetid,
ChunkId : &chunkid,
Offset : &offset,
Length : &chunksize,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Align

@caoxianfei1
Copy link
Contributor

cicheck

@@ -0,0 +1,194 @@
/*
* Copyright (c) 2022 NetEase Inc.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Copyright (c) 2022 NetEase Inc.
* Copyright (c) 2023 NetEase Inc.

@Cyber-SiKu
Copy link
Contributor

cicheck

1 similar comment
@Cyber-SiKu
Copy link
Contributor

cicheck

@victorseptember
Copy link
Contributor Author

cicheck

2 similar comments
@Cyber-SiKu
Copy link
Contributor

cicheck

@Cyber-SiKu
Copy link
Contributor

cicheck

@Cyber-SiKu
Copy link
Contributor

cicheck

@Cyber-SiKu Cyber-SiKu merged commit d19e7e9 into opencurve:master Oct 27, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants