-
Notifications
You must be signed in to change notification settings - Fork 233
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
sync etcd endpoints immediately after initializing the client #1573
Conversation
Signed-off-by: Vlad Dmitriev <[email protected]>
Welcome @vldmit! |
@cfzjywxk PTAL |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cfzjywxk, zyguan 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:
Approvers can indicate their approval by writing |
/retest |
Close #1574
Problem Statement
etcd client would only run
Sync
afterAutoSyncInterval
(30 seconds), which makes tikv client vulnerable to the failure of endpoints provided inaddrs
before the first sync happens. Specific failure scenario:--path=endpoint
endpoint
CheckVisibility
inKVStore
start to error outFix
We explicitly synchronize client endpoints with endpoints from etcd membership during client initialization phase. etcd client would continue to do periodic sync, we just force first sync to happen in the init phase.