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

Obtain Configuration before Raft Starts #369

Merged
merged 2 commits into from
Oct 19, 2019
Merged

Obtain Configuration before Raft Starts #369

merged 2 commits into from
Oct 19, 2019

Conversation

schristoff
Copy link
Contributor

Fixes #298.
Introduces a new function GetConfiguration which allows for bypassing of background goroutines so the configuration can be obtained before Raft starts.

Thanks @stapelberg for help. Your PR laid the groundwork for this, and your test code was directly used. Thank you to @RobbieMcKinstry for the direct guidance.

We took a different approach to implementation leaning on the existing Raft.GetConfiguration() future. @banks suggested using the RecoverCluster method, however we abandoned this idea due to the complexities of the signature.

@schristoff schristoff mentioned this pull request Oct 14, 2019
@stapelberg
Copy link
Contributor

Thanks for moving this forward :)

@RobbieMcKinstry
Copy link
Contributor

Glad to help! :)

Copy link
Contributor

@catsby catsby left a comment

Choose a reason for hiding this comment

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

Comment on naming but otherwise LGTM!

api.go Outdated Show resolved Hide resolved
Copy link
Contributor

@catsby catsby left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@schristoff schristoff merged commit 4637a11 into master Oct 19, 2019
@schristoff schristoff deleted the getconfig branch October 19, 2019 17:58
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.

Obtaining peers before starting Raft processing
4 participants