Skip to content

TSO request may fail at the time of leader changing #2663

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

Closed
JmPotato opened this issue Jul 16, 2020 · 2 comments · Fixed by #2665 or #2675
Closed

TSO request may fail at the time of leader changing #2663

JmPotato opened this issue Jul 16, 2020 · 2 comments · Fixed by #2665 or #2675
Assignees
Labels
status/TODO The issue will be done in the future. type/bug The issue is confirmed as a bug.

Comments

@JmPotato
Copy link
Member

JmPotato commented Jul 16, 2020

Bug Report

Under the current latest version of PD, TSO request may fail at the time of leader changing because SyncTimestamp is not yet completed but PD receives a TSO request at the same time. To fix this, we may need to check the leader lease and retry when loading TSO in memory fails rather than just return an error.

image

Notice for reopening

I reopen this issue because this bug still exists in the normal leader changing case. We may need to add a retry mechanism for PD client to address this question totally.

@nolouch
Copy link
Contributor

nolouch commented Aug 25, 2020

Has it been fixed?

@JmPotato
Copy link
Member Author

Fixed by pingcap/tidb#19382

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/TODO The issue will be done in the future. type/bug The issue is confirmed as a bug.
Projects
None yet
2 participants