-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
txn: Provide PessimisticRCTxnContextProvider
for RC isolation
#34702
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. |
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/e99972815cd2d01d9d3b6ad8a9f2266cecdfe0f8 |
/run-mysql-test |
/run-mysql-test |
/run-mysql-test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/run-mysql-test |
Co-authored-by: you06 <you1474600@gmail.com>
/merge |
This pull request has been accepted and is ready to merge. Commit hash: e999728
|
TiDB MergeCI notify🔴 Bad News! [2] CI still failing after this pr merged.
|
What problem does this PR solve?
Issue Number: close #34746
What is changed and how it works?
This PR contains the below works:
Advise
toTxnManager
andTxnContextProvider
. The methodAdvise
is an enhancement method for the users to do some optimizations. So advise or not advise to the provider should not affect the correctness. Now it supports one typeAdviceWarmUp
to tell the provider to start fetch the tso background. For simple, user can usesessiontxn.WarmUpTxn
too.WarmUpTxn
can replace the old methodPrepareTSFuture
.PessimisticRCTxnContextProvider
to provide transaction context under RC isolation and some codes are simplified inexecutorBuilder
Check List
Tests
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.