Skip to content
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

Don't backoff on send failure if it will access a different store in the next time #521

Open
sticnarf opened this issue Jun 7, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@sticnarf
Copy link
Collaborator

sticnarf commented Jun 7, 2022

If sending RPC fails, we always backoff and wait:

err = bo.Backoff(retry.BoTiKVRPC, errors.Errorf("send tikv request error: %v, ctx: %v, try next peer later", err, ctx))

However, it is not necessary if we switch to sending to another store. For example, on follower read, in the next retry, we will retry the next follower. Then, it's totally a waste of time to wait for a while.

@sticnarf sticnarf added the enhancement New feature or request label Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant