-
Notifications
You must be signed in to change notification settings - Fork 247
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
Support fallback when resolveLockAsync #2651
Support fallback when resolveLockAsync #2651
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
9ff50fe
to
d305f98
Compare
/run-all-tests |
bfd4fbd
to
54e83fa
Compare
/run-all-tests |
/run-all-tests |
/run-all-tests |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: e708b66
|
What problem does this PR solve?
If we does not fallback in the resolveLockAsync. TiSpark may commit the txn which should be rollback.
What is changed and how it works?
refer to client-go https://github.com/tikv/client-go/blob/daddf73a0706d78c9e980c91c97cc9ed100f1919/txnkv/txnlock/lock_resolver.go#L341
When we checkSecondaries and find the lock did not use AsyncCommit. Just throw an exception. resolveLockAsync will fallback when it catches the exception