-
Notifications
You must be signed in to change notification settings - Fork 526
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
Curvebs stop volume snapshot #2794
Curvebs stop volume snapshot #2794
Conversation
82e6e7e
to
c516f8d
Compare
cicheck |
23 similar comments
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
3 similar comments
cicheck |
cicheck |
cicheck |
test/tools/status_tool_test.cpp
Outdated
// EXPECT_CALL(*mdsClient_, ListChunkServersInCluster( | ||
// An<std::map<PoolIdType, std::vector<ChunkServerInfo>>*>())) | ||
// .Times(1) | ||
// .WillOnce(Return(-1)); | ||
ASSERT_EQ(-1, statusTool.RunCommand("chunkserver-status")); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now tool code will not run the ci, so you can revert this change
tools-v2/internal/error/error.go
Outdated
@@ -481,6 +481,12 @@ var ( | |||
ErrListWarmup = func() *CmdError { | |||
return NewInternalCmdError(74, "list warmup progress fail, err: %s") | |||
} | |||
ErrBsGetSnapShotListResult = func() *CmdError { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not be used?
return records, err | ||
} | ||
|
||
func (s *Stop) getSnapShotListAll() ([]*Record, *cmderror.CmdError) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The function is intend to list all snapshot? may be we can provide a command such as curve bs list snapshot
, then we invoke the interface here.
const ( | ||
VERSION = "0.0.6" | ||
LIMIT = "100" | ||
OFFSET = "0" | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The variable place global floder is better? because all snapshot command wiil use it like NewSubUri
function.
tools-v2/pkg/config/bs.go
Outdated
@@ -142,6 +142,8 @@ const ( | |||
VIPER_CURVEBS_DEST = "curvebs.dest" | |||
CURVEBS_TASKID = "taskid" | |||
VIPER_CURVEBS_TASKID = "curvebs.taskid" | |||
CURVEBS_SNAPSHOTSEQID = "snapshotseqid" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that the option name is too long.
OFFSET = "0" | ||
) | ||
|
||
type Stop struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Stop struct name is inappropriate. Change another name?
7e837a7
to
4c17129
Compare
cicheck |
8 similar comments
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
@caoxianfei1 I've refactored it with listsnapshot, waiting for further review. |
a5f4867
to
c6b32b4
Compare
Signed-off-by: ZackSoul <[email protected]> add bs stop snapshot Signed-off-by: ZackSoul <[email protected]> add bs stop snapshot Signed-off-by: ZackSoul <[email protected]> add bs stop snapshot Signed-off-by: ZackSoul <[email protected]> add bs stop snapshot Signed-off-by: ZackSoul <[email protected]> add bs stop snapshot Signed-off-by: ZackSoul <[email protected]> add bs stop snapshot Signed-off-by: ZackSoul <[email protected]> add bs stop snapshot Signed-off-by: ZackSoul <[email protected]>
c6b32b4
to
291e3c9
Compare
cicheck |
call for rerview @caoxianfei1 |
waiting for review |
What problem does this PR solve?
Issue Number: #2579
Problem Summary:
What is changed and how it works?
add curve bs stop volume snapshot
What's Changed:
How it Works:
curve bs stop volume volumeSnapshot
Side effects(Breaking backward compatibility? Performance regression?):
Check List