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

TiKV should be the only source of truth #1398

Open
rleungx opened this issue Jul 29, 2024 · 1 comment
Open

TiKV should be the only source of truth #1398

rleungx opened this issue Jul 29, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@rleungx
Copy link
Member

rleungx commented Jul 29, 2024

Recently, we encountered a problem: the region epoch on PD is fallback due to the PD synchronizing issue when transferring the leader. And the new PD leader doesn't have the latest information on some regions including the peer list and the leader.
But the client keeps trying to send the request to the first peer in the old peer list which doesn't contain the new leader peer. Then the client gets the not leader error from the TiKV. After receiving the error, the client decides to update the region cache from PD, however, the information on PD is still stale. This process lasts for 2min which affects the user's business. But actually, the correct information is returned through the TiKV's response. We can use that information to update the region cache to avoid some unexpected issues of PD which make the system more robust.

Copy link

ti-chi-bot bot commented Sep 25, 2024

@wuhuizuo: The label(s) /label ? cannot be applied. These labels are supported: ``. Is this label configured under labels -> additional_labels or `labels -> restricted_labels` in `plugin.yaml`?

In response to this:

/label ?

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@cfzjywxk cfzjywxk added the enhancement New feature or request label Nov 27, 2024
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

2 participants