Andrey Smirnov 17edc883cf fix: make forfeit leadership connect to the right node
I believe `clientv3.SetEndpoints()` calls doesn't make etcd client
connect to the endpoints mentioned immediately, it might stil reuse old
connection (?).

At the same time `MaintenanceClient` which implements `MoveLeader` calls
doesn't support explicit endpoint setting (as other similar calls do),
so we have to manually force the connection to the leader node we need.

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
(cherry picked from commit 9bf899bdd852befbb4aa5ac4f3ceecb3c33502c8)
2021-07-07 23:14:27 +03:00
..
2021-05-06 07:35:29 -07:00
2021-03-05 05:58:33 -08:00
2021-04-09 12:53:00 -07:00