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

curvefs: support replace a server which doesn't work anymore. #954

Merged
merged 1 commit into from
Jan 13, 2022

Conversation

SeanHai
Copy link
Contributor

@SeanHai SeanHai commented Jan 7, 2022

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

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

@SeanHai
Copy link
Contributor Author

SeanHai commented Jan 7, 2022

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;
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Comment on lines 136 to 138
int ClearPool();
int ClearZone();
int ClearServer();
Copy link
Contributor

Choose a reason for hiding this comment

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

Clear is miss leading

Copy link
Contributor Author

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);
Copy link
Contributor

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.

Copy link
Contributor Author

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.
@aspirer aspirer changed the title curvefs: support replace a servev which donen't works anymore. curvefs: support replace a server which donen't works anymore. Jan 10, 2022
@aspirer
Copy link
Contributor

aspirer commented Jan 10, 2022

Please associate the pull request with an issue.

@SeanHai SeanHai changed the title curvefs: support replace a server which donen't works anymore. curvefs: support replace a server which doesn't works anymore. Jan 10, 2022
@SeanHai SeanHai changed the title curvefs: support replace a server which doesn't works anymore. curvefs: support replace a server which doesn't work anymore. Jan 11, 2022
@Wine93
Copy link
Contributor

Wine93 commented Jan 12, 2022

LGTM!

@SeanHai SeanHai merged commit 895fa84 into opencurve:fs Jan 13, 2022
@SeanHai SeanHai deleted the fs branch April 14, 2022 03:32
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.

The Metaserver node cannot be added or another method is required to add a Metaserver
4 participants