-
Notifications
You must be signed in to change notification settings - Fork 525
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
curvefs: support replace a server which doesn't work anymore. #954
Conversation
recheck |
@@ -38,7 +38,7 @@ enum TopoStatusCode { | |||
TOPO_IP_PORT_DUPLICATED = 14; | |||
TOPO_NAME_DUPLICATED = 15; | |||
TOPO_CREATE_COPYSET_ON_METASERVER_FAIL = 16; | |||
TOPO_CANNOT_REMOVE_NOT_RETIRED = 17; | |||
TOPO_CANNOT_REMOVE_NOT_OFFLINE = 17; |
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.
do we have RETIRED
state for metaserver now?
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.
do we have
RETIRED
state for metaserver now?
Metaserver does't have this state.
int ClearPool(); | ||
int ClearZone(); | ||
int ClearServer(); |
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.
Clear
is miss leading
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.
Clear
is miss leading
fix
|
||
brpc::Controller cntl; | ||
cntl.set_timeout_ms(FLAGS_rpcTimeoutMs); | ||
cntl.set_log_id(1); |
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.
if you don't want to use log_id
to trace RPC calls, there's no need to set it. otherwise, you have to set a different ID for each RPC call.
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.
if you don't want to use
log_id
to trace RPC calls, there's no need to set it. otherwise, you have to set a different ID for each RPC call.
fix
If a server with some metaservers on it, and it crashed. Then will need add a new server into the cluster.
Please associate the pull request with an issue. |
LGTM! |
If a server with some metaservers on it, and it crashed. Then will need
add a new server into the cluster.
What problem does this PR solve?
Issue Number: close #xxx
#939
Problem Summary:
What is changed and how it works?
What's Changed:
How it Works:
Side effects(Breaking backward compatibility? Performance regression?):
Check List