-
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
sessionctx/variable: set DEFAULT_VALUE for 'tidb_txn_mode' #48500
Conversation
Hi @highpon. Thanks for your PR. I'm waiting for a pingcap member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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 kubernetes/test-infra repository. |
Hi @highpon. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. 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 kubernetes/test-infra repository. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #48500 +/- ##
================================================
+ Coverage 70.9340% 71.1412% +0.2072%
================================================
Files 1368 1433 +65
Lines 395342 417433 +22091
================================================
+ Hits 280432 296967 +16535
- Misses 95256 101680 +6424
+ Partials 19654 18786 -868
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@cfzjywxk PTAL |
The important reason we leave the default value of variable
If we change the default value of So I think we need to:
|
PR update! |
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.
I tested the the suggested version upgradeToVer38
, it works.
For upgradeToVer32
, I cannot start v2 cluster with tiup, it's not easy to test :(
@you06 |
@highpon sorry for the idea of seetting variables linside e.g.
I'm discussing with @Defined2014 to find out a compatibility solution. |
Because in early versions, So our strategy can be:
So we need to execute |
Thanks for you review. |
/retest |
I think we didn't change the default value, just correct it, but I'll request reviews from PM. |
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, sorry for late review, because I missed the notice from GitHub.
Can you solve the conflict so we can merge this PR?
@benmaoer PTAL
[LGTM Timeline notifier]Timeline:
|
@Defined2014 |
You are welcome, I will ask PM to review this PR later. |
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
@benmaoer: adding LGTM is restricted to approvers and reviewers in OWNERS files. 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 kubernetes/test-infra repository. |
/unhold |
/approve The default value of the tidb_txn_mode variable has been changed from "null" to "pessimistic," enhancing the clarity of this variable's meaning and ensuring more consistent behavior. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: benmaoer, Defined2014, easonn7, you06 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold |
/unhold |
What problem does this PR solve?
Issue Number: close #48492
Problem Summary:The documentation currently states that the default value for tidb_txn_mode is pessimistic, however there is no default value set for
tidb_txn_mode
. This PR fixes this problem and sets the default value oftidb_txn_mode
to pessimistic.What is changed and how it works?
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.