-
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
add ability to change capacity in fsinfo #2821
Conversation
h0hmj
commented
Oct 19, 2023
- add mds rpc
- add tools-v2 command
|
||
// 3. update fs info | ||
// set capacity | ||
if (req->has_capacity()) { |
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.
check this at beginning, the step 1 and 2 are not required if capacity not exist.
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.
ok i will add parameter check in MdsServiceImpl::UpdateFsInfo
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.
It has been checked in mds servers. Do I still need to check here?
Need to add some unit tests |
done |
cicheck |
curvefs/src/mds/mds_service.cpp
Outdated
// request parameter check, we want at least one field that need to change | ||
if (!request->has_capacity()) { | ||
response->set_statuscode(FSStatusCode::PARAM_ERROR); | ||
LOG(ERROR) << "UpdateFsInfo fail, request: " |
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.
log warnning is enough
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.
fix
Signed-off-by: h0hmj <[email protected]>
cicheck |
|
||
// 3. update fs info | ||
// set capacity | ||
if (req->has_capacity()) { |
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.
It has been checked in mds servers. Do I still need to check here?
cicheck |
Signed-off-by: h0hmj <[email protected]>
cicheck |
cicheck |