-
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
executor: support innodb_lock_wait_timeout for pessimistic transaction(#13103) #13165
Conversation
session/pessimistic_test.go
Outdated
tk2.MustExec("commit") | ||
tk3.MustExec("commit") | ||
|
||
tk.MustQuery(`select * from tk where c1 = 1`).Check(testkit.Rows("1 1")) |
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.
We can select and check multiple rows.
executor/adapter.go
Outdated
// txn not found, and before the commit operation other transaction may lock succeed(from the user side, | ||
// the first transaction did not release lock yet) | ||
if err != nil { | ||
newForUpdateTS, tsErr := a.GetTimestampWithRetry(ctx) |
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.
@coocood Is this appropriate to update forUpdateTs
if err != nil (ErrNoWaitSet, ErrLockWaitTimeout ...)
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.
yes
LGTM waiting for tikv/tikv#5680 to be picked to release-3.0 |
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
Your auto merge job has been accepted, waiting for 13290 |
/run-all-tests |
What problem does this PR solve?
innodb_lock_wait_timeout
system variableWhat is changed and how it works?
the kvproto pull request is here link
Check List
Tests
Code changes
Side effects
Related changes
Release note