-
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
executor: mutex snapshot with txn #25468
Conversation
Signed-off-by: xhe <xw897002528@gmail.com>
Signed-off-by: xhe <xw897002528@gmail.com>
Signed-off-by: xhe <xw897002528@gmail.com>
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.
Rest LGTM
executor/stale_txn_test.go
Outdated
// test start txn will flush/mutex tidb_snapshot | ||
tk.MustExec(`set @@tidb_snapshot="2020-10-08 16:45:26";`) | ||
c.Assert(tk.Se.GetSessionVars().SnapshotTS, Equals, uint64(419993151340544000)) |
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 think we can set tidb_snapshot
/ set transaction read only as of timestamp
/ start transaction read only as of timestamp
with different timestamp ( ddl operation between each timestamp) and assert the SchemaVersion of SnapshotInfoSchema.
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.
What about now?
Signed-off-by: xhe <xw897002528@gmail.com>
Signed-off-by: xhe <xw897002528@gmail.com>
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
[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: 9e2cf64
|
/run-cherry-pick |
Signed-off-by: xhe xw897002528@gmail.com
What problem does this PR solve?
Problem Summary: Should not be able to set
tidb_snapshot
andtxn_read_ts
in the txn. Andstart txn as of
should settidb_snapshot
into 0 asset txn as of
.Check List
Tests
Release note