-
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 forbiding cross dc read for pointGet #21840
Conversation
@winoros @djshow832 PTAL |
@@ -2422,7 +2422,7 @@ func (s *session) InitTxnWithStartTS(startTS uint64) error { | |||
} | |||
|
|||
// no need to get txn from txnFutureCh since txn should init with startTs | |||
txn, err := s.store.BeginWithStartTS(oracle.GlobalTxnScope, startTS) |
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.
This would let PointGet
always use global
as txnScope.
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.
Maybe because PointGet always use max uint64 as start ts, so it doesn't matter.
@djshow832 we will support BatchPointGet later after #21847 is solved. |
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
@djshow832, Thanks for your review. The bot only counts LGTMs from Reviewers and higher roles, but you're still welcome to leave your comments. See the corresponding SIG page for more information. Related SIG: execution(slack). |
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
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
/merge |
/run-all-tests |
What problem does this PR solve?
Issue Number: close #21426
Problem Summary:
What is changed and how it works?
Forbid
PointGet
read data by holding wrong txnScope.Check List
Tests
Release note