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

ctlv3: ensure synced member list before printing env vars on member add #7499

Merged

Conversation

heyitsanthony
Copy link
Contributor

In cases of multiple endpoints, it's possible member add would get a its
member list from a member that has not yet recognized the membership
update. Instead, confirm that the member list response is from the
member that acked the member add or from a member that has synced
with the cluster following the member add.

Fixes #7498

@heyitsanthony
Copy link
Contributor Author

This is kind of a hack. Member{Add,Update,Delete}Response should probably include the member list for the cluster so the commands are atomic.

@xiang90
Copy link
Contributor

xiang90 commented Mar 14, 2017

I am OK with this hack to solve the immediate problem. Returning the entire list for modification also seems OK.

@gyuho
Copy link
Contributor

gyuho commented Mar 15, 2017

lgtm. shall we backport?

In cases of multiple endpoints, it's possible member add would get a its
member list from a member that has not yet recognized the membership
update. Instead, confirm that the member list response is from the
member that acked the member add or from a member that has synced
with the cluster following the member add.

Fixes etcd-io#7498
@codecov-io
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (master@18a813a). Click here to learn what that means.
The diff coverage is 50%.

@@            Coverage Diff            @@
##             master    #7499   +/-   ##
=========================================
  Coverage          ?   70.09%           
=========================================
  Files             ?      320           
  Lines             ?    26184           
  Branches          ?        0           
=========================================
  Hits              ?    18354           
  Misses            ?     6376           
  Partials          ?     1454
Impacted Files Coverage Δ
etcdctl/ctlv3/command/member_command.go 74.1% <50%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 18a813a...3e86779. Read the comment docs.

@heyitsanthony heyitsanthony merged commit 8f83d11 into etcd-io:master Mar 15, 2017
@heyitsanthony heyitsanthony deleted the fix-etcdctl-add-member-env branch April 7, 2017 21:30
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.

4 participants