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

etcdserver, embed: stricter reconfig checking #6106

Merged

Conversation

heyitsanthony
Copy link
Contributor

Make --strict-reconfig-check a default and check if cluster is healthy when adding a member.

@xiang90
Copy link
Contributor

xiang90 commented Aug 5, 2016

do we have an e2e test for this feature yet?

@heyitsanthony
Copy link
Contributor Author

nope, I'll see about adding some

@heyitsanthony
Copy link
Contributor Author

Added an integration test; e2e would've been kind of messy. /cc @xiang90


// all attempts to add member should fail
for i := 1; i < len(c.Members); i++ {
if err := c.addMemberByURL(t, c.URL(i), "unix://foo:12345"); err == nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

check the exact error? if err != xxx

Copy link
Contributor Author

@heyitsanthony heyitsanthony Aug 5, 2016

Choose a reason for hiding this comment

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

the error's kind of misleading; it gets turned into a no leader error because the api gives a 500 error and the client converts it...

Copy link
Contributor

Choose a reason for hiding this comment

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

:(. ok...

Copy link
Contributor

Choose a reason for hiding this comment

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

can do add comment and a todo to fix this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll just fix it now instead of reusing the not enough started error message...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

punting on this, using the comment+TODO; change would be too involved for this patch

@xiang90
Copy link
Contributor

xiang90 commented Aug 5, 2016

lgtm

Make --strict-reconfig-check a default and check if cluster is healthy when
adding a member.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants