-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
[release-3.4] etcdctl: fix move-leader for multiple endpoints #14441
Conversation
will take a look at the proxy errors:
I saw there were some issues with ordering while debugging it locally, as the test sets the env variables in the test process and not on the forked process. |
Due to a duplicate call of clientConfigFromCmd, the move-leader command would fail with "conflicting environment variable is shadowed by corresponding command-line flag". Also in scenarios where no command-line flag was supplied. Signed-off-by: Thomas Jungblut <tjungblu@redhat.com>
a3539ad
to
86bc0a2
Compare
That one looks bad, but possibly unrelated to my changes:
@ahrtr could you kindly retry the failures, please? guess the grpcproxy job also got stuck somehow... |
It is a known issue, FYI. #14256 (comment) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thank you @tjungblu
@tjungblu I see that you fixed this issue in 3.4 and 3.5, but I do not see PR for |
This seems not correct. I just confirmed that the
|
Would you mind deliver a PR or let me fix it in main right now? |
@ahrtr the bug I was fixing is slightly different - check out: #14307 (comment) This happens when you are moving the leader with the env variable set, but without the argument. What you're describing is the correct failure - you're shadowing the env variable with a conflicting value. |
|
indeed, apologies - I had a strange build of etcdctl in my path. Will send you the fix for main right away. |
Sure, thanks. |
There are duplicated items for etcd-io#14441. Since it's a etcdctl side change, so we should keep the item under etcdctl, and remove the duplicated item under "etcd server" Signed-off-by: Benjamin Wang <wachao@vmware.com>
This is a backport of #14434 to 3.4.
Due to a duplicate call of clientConfigFromCmd, the move-leader command would fail with "conflicting environment variable is shadowed by corresponding command-line flag". Also in scenarios where no command-line flag was supplied.
Signed-off-by: Thomas Jungblut tjungblu@redhat.com