Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
etcdserver: return membership.ErrIDNotFound when the memberID not found
Backport #15095. When promoting a learner, we need to wait until the leader's applied ID catches up to the commitId. Afterwards, check whether the learner ID exist or not, and return `membership.ErrIDNotFound` directly in the API if the member ID not found, to avoid the request being unnecessarily delivered to raft. Signed-off-by: Benjamin Wang <[email protected]>
- Loading branch information