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 |
| // .Times(1) | ||
| // .WillOnce(Return(-1)); | ||
| ASSERT_EQ(-1, statusTool.RunCommand("chunkserver-status")); | ||
| } |
There was a problem hiding this comment.
Now tool code will not run the ci, so you can revert this change
tools-v2/internal/error/error.go
Outdated
| ErrListWarmup = func() *CmdError { | ||
| return NewInternalCmdError(74, "list warmup progress fail, err: %s") | ||
| } | ||
| ErrBsGetSnapShotListResult = func() *CmdError { |
| return records, err | ||
| } | ||
|
|
||
| func (s *Stop) getSnapShotListAll() ([]*Record, *cmderror.CmdError) { |
There was a problem hiding this comment.
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.
The variable place global floder is better? because all snapshot command wiil use it like NewSubUri function.
tools-v2/pkg/config/bs.go
Outdated
| VIPER_CURVEBS_DEST = "curvebs.dest" | ||
| CURVEBS_TASKID = "taskid" | ||
| VIPER_CURVEBS_TASKID = "curvebs.taskid" | ||
| CURVEBS_SNAPSHOTSEQID = "snapshotseqid" |
There was a problem hiding this comment.
I think that the option name is too long.
| OFFSET = "0" | ||
| ) | ||
|
|
||
| type Stop struct { |
There was a problem hiding this comment.
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 <2269713951@qq.com> add bs stop snapshot Signed-off-by: ZackSoul <2269713951@qq.com> add bs stop snapshot Signed-off-by: ZackSoul <2269713951@qq.com> add bs stop snapshot Signed-off-by: ZackSoul <2269713951@qq.com> add bs stop snapshot Signed-off-by: ZackSoul <2269713951@qq.com> add bs stop snapshot Signed-off-by: ZackSoul <2269713951@qq.com> add bs stop snapshot Signed-off-by: ZackSoul <2269713951@qq.com> add bs stop snapshot Signed-off-by: ZackSoul <2269713951@qq.com>
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