-
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
config, session: make Local Transaction not to affect Stale Read #25559
Conversation
No release note, Please follow https://github.com/pingcap/community/blob/master/contributors/release-note-checker.md |
Signed-off-by: JmPotato <[email protected]>
0dfd2aa
to
07e0b8a
Compare
Signed-off-by: JmPotato <[email protected]>
EnableLocalTxn
configSigned-off-by: JmPotato <[email protected]>
Signed-off-by: JmPotato <[email protected]>
Signed-off-by: JmPotato <[email protected]>
4a9e53e
to
f77861d
Compare
/label needs-cherry-pick-5.1 |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 45bd6b6c9191356d5673d4f85807aa3e261b04d8
|
/merge cancel |
/hold |
Signed-off-by: JmPotato <[email protected]>
7aabb96
to
93b11f6
Compare
/unhold |
Signed-off-by: JmPotato <[email protected]>
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 1d31761
|
/merge |
@JmPotato: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
/run-all-tests |
/run-check_dev_2 |
Signed-off-by: ti-srebot <[email protected]>
cherry pick to release-5.1 in PR #25668 |
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
.