-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
etcdmain: delete member dir falling back to proxy #3949
Conversation
This fixes etcd-io#3827 where member falls to back to proxy successfully at first, but fails in subsequent tries. It fails when there are 'member' and 'proxy' directory in the same place, one of which did not get cleaned up from failure and causes this conflict error message: 'invalid datadir. Both member and proxy directories exist.'
Kindly ping @xiang90 @jonboulle Please review and let me know if you have any other suggestion to resolve #3827. Thanks! |
@gyuho Can we stop etcd from creating member dir if it does not start as an etcd member? |
@xiang90 Ok, I will try that approach! Thanks |
@xiang90 I looked at the code again, and I think the issue matter only when a member falls back to proxy.
Code1's Please let me know if you have any feedback. |
I think we either allow member to have both |
@gyuho My question is when the will the user have both dir? That should not happen. |
@xiang90 Please correct me if I am wrong. shows if
|
etcd should probably ONLY create member dir after it finishes bootstrapping, not before. |
In the discovery case, etcd should create member dir after it finishes discovery and finds all its peers. |
Thanks. I will investigate more. Sincerely,
|
Closing this in favor of #4087. |
This fixes #3827 where member falls to
back to proxy successfully at first, but fails in subsequent tries.
It fails when there are 'member' and 'proxy' directory in the same place,
one of which did not get cleaned up from failure and causes this conflict
error message: 'invalid datadir. Both member and proxy directories exist.'