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

Delete the retry logic while launching metadata service and reset the etcd client while probing #1649

Merged
merged 2 commits into from
Dec 18, 2023

Conversation

dashanji
Copy link
Member

What do these changes do?

As titled.

Related issue number

Fixes #1648

…etcd client to fix segmentation fault.

Signed-off-by: Ye Cao <caoye.cao@alibaba-inc.com>
if (EtcdLauncher::probeEtcdServer(etcd_, prefix_)) {
return Status::OK();
} else {
etcd_.reset(new etcd::Client(etcd_endpoint));
Copy link
Member

Choose a reason for hiding this comment

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

Why you need this initialization?

Copy link
Member Author

Choose a reason for hiding this comment

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

Done. Reset the client before probing.

Signed-off-by: Ye Cao <caoye.cao@alibaba-inc.com>
@sighingnow sighingnow merged commit 63dd6ad into v6d-io:main Dec 18, 2023
5 checks passed
@sighingnow sighingnow deleted the fix-segmentation-fault branch December 18, 2023 03:11
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 segmentation fault error occurs while the vineyardd waiting for metadata service.
2 participants