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

Split apart and test appendConfigurationEntry #132

Merged

Conversation

ongardie-sfdc
Copy link

This fixes a bug where AddNonvoter would previously demote a server from
Staging to Nonvoter (the intended semantics are no-op in that case).

This is box 14 on James's post- #117 checklist on #84.

This fixes a bug where AddNonvoter would previously demote a server from
Staging to Nonvoter (the intended semantics are no-op in that case).

This is hashicorp#14 on James's post-PR-117 checklist.
// it'll instruct the replication routines to try to replicate to the current
// index.
func (r *Raft) startStopReplication() {
inConfig := make(map[ServerID]bool, len(r.leaderState.replState))
Copy link
Contributor

Choose a reason for hiding this comment

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

This should probably be len(r.configurations.latest.Servers). This'll be 0 at this time.

Copy link
Contributor

Choose a reason for hiding this comment

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

Nevermind - not for the stop case.

Copy link
Author

Choose a reason for hiding this comment

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

Even then, you're still right: there'll be one entry in the map per len(r.configurations.latest.Servers), perhaps except for the local server.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah it can't hurt to use that as the size for sure.

@slackpad
Copy link
Contributor

slackpad commented Jul 6, 2016

@ongardie just a few minor comments, otherwise LGTM!

@slackpad slackpad mentioned this pull request Jul 6, 2016
14 tasks
ongardie added 2 commits July 6, 2016 17:09
@ongardie-sfdc
Copy link
Author

Pushed a few more, I think that addressed all the comments.

@slackpad
Copy link
Contributor

slackpad commented Jul 7, 2016

Looks good - thanks!

@slackpad slackpad merged commit 8a9a1b0 into hashicorp:issue-84-integration Jul 7, 2016
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.

3 participants