tikv / pd

Placement driver for TiKV
Apache License 2.0
1.03k stars 714 forks source link

etcdutil: check if the endpoint has been removed before evicting (#8287) #8290

Closed ti-chi-bot closed 2 weeks ago

ti-chi-bot commented 2 weeks ago

This is an automated cherry-pick of #8287

What problem does this PR solve?

Issue Number: close #8286.

What is changed and how does it work?

Once a member is removed from the cluster, its endpoint should no longer exist in the health checker.
This PR adds a check to prevent the removed endpoint from being evicted again unexpectedly.

Check List

Tests

Release note

None.
ti-chi-bot[bot] commented 2 weeks ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JmPotato

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/tikv/pd/blob/release-8.1/OWNERS)~~ [JmPotato] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment