-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
*: disable read committed isolation level #7280
Conversation
store/tikv/region_request.go
Outdated
@@ -240,12 +240,5 @@ func (s *RegionRequestSender) onRegionError(bo *Backoffer, ctx *RPCContext, regi | |||
} | |||
|
|||
func pbIsolationLevel(level kv.IsoLevel) kvrpcpb.IsolationLevel { | |||
switch level { |
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.
Analyze statement need to use RC isolation level.
read committed isolation may cause inconsistent read. Only Analyze request use read committed isolation level.
7507ab4
to
7a96a85
Compare
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-all-tests |
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-unit-test |
read committed isolation may cause inconsistent read.
What have you changed? (mandatory)
disable read committed isolation level
What is the type of the changes? (mandatory)
How has this PR been tested? (mandatory)
Run concurrent DML statements with admin check table.
Does this PR affect documentation (docs/docs-cn) update? (mandatory)
YES
Does this PR affect tidb-ansible update? (mandatory)
NO
Does this PR need to be added to the release notes? (mandatory)
YES
Refer to a related PR or issue link (optional)
Benchmark result if necessary (optional)
Add a few positive/negative examples (optional)