-
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
config, session: make Local Transaction not to affect Stale Read (#25559) #25668
config, session: make Local Transaction not to affect Stale Read (#25559) #25668
Conversation
Signed-off-by: ti-srebot <[email protected]>
/run-all-tests |
@JmPotato you're already a collaborator in bot's repo. |
Signed-off-by: JmPotato <[email protected]>
b342758
to
3f79c23
Compare
[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. |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 3f79c23
|
/merge |
/run-unit-tests |
/run-check_dev |
cherry-pick #25559 to release-5.1
You can switch your code base to this Pull Request by using git-extras:
# In tidb repo: git pr https://github.com/pingcap/tidb/pull/25668
After apply modifications, you can push your change to this PR via:
Signed-off-by: JmPotato [email protected]
What problem does this PR solve?
Close #25479.
Decouple Stale Read and Local Txn by adding a new system variable named
EnableLocalTxn
. Should merge after #25525.What is changed and how it works?
Because both Stale Read and Local Txn need the
zone
label to determine their behavior, however, the latter is not released yet, to make sure they will not bother each other. I add a system variableEnableLocalTxn
to disable Local Txn.Related changes
GetTxnScopeFromConfig
returnTxnScope
from config directly tikv/client-go#93Check List
Tests
Release note
No release note
.