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

Disable stale read when retry leader with keyIsLocked error #43659

Closed
you06 opened this issue May 9, 2023 · 0 comments · Fixed by #44240
Closed

Disable stale read when retry leader with keyIsLocked error #43659

you06 opened this issue May 9, 2023 · 0 comments · Fixed by #44240
Assignees
Labels
affects-6.5 affects-7.1 sig/transaction SIG:Transaction type/enhancement The issue or PR belongs to an enhancement.

Comments

@you06
Copy link
Contributor

you06 commented May 9, 2023

Enhancement

We have an optimization that when stale read meet dataIsNotReady, fallback to leader, and it may suffer keyIsLocked error from leader, after resolving lock, we need to retry directly with leader, unless there may be an useless dataIsNotReady.

Now:

follower(dataIsNotReady) -> leader(keyIsLocked) -> lock resolve -> follower(dataIsNotReady) -> leader(success)

Change to:

follower(dataIsNotReady) -> leader(keyIsLocked) -> lock resolve -> -> leader(success)
@you06 you06 added the type/enhancement The issue or PR belongs to an enhancement. label May 9, 2023
@jebter jebter added the sig/transaction SIG:Transaction label Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-6.5 affects-7.1 sig/transaction SIG:Transaction type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants