-
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
store, executor: support stale read for tikv RPCContext #22176
Merged
Merged
Changes from all commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
5ed556e
support staleness context
Yisaer 864c2f0
enable staleread
Yisaer 39cc9f1
use EnableStaleRead
Yisaer 0d1a750
use match labels
Yisaer 6566224
fix fmt
Yisaer ac661d3
revise judge
Yisaer dfc0842
add test
Yisaer 28040eb
fix test
Yisaer 266765b
Update executor_test.go
Yisaer a4725ef
Update executor_test.go
Yisaer 66706cc
add info
Yisaer 3135a99
fix test
Yisaer 6215804
add debug log
Yisaer 7835b2c
Update client.go
Yisaer 5149542
Revert "Update client.go"
Yisaer 6ffb15a
Revert "add debug log"
Yisaer ff83775
Merge remote-tracking branch 'upstream/master' into stale_read
Yisaer 38a9631
add assert case
Yisaer 69c62b7
Merge branch 'master' into stale_read
Yisaer 0e645e6
update kvproto
Yisaer e114580
Merge remote-tracking branch 'upstream/master' into stale_read
Yisaer ac7239a
update SendReqCtx
Yisaer 1760bf2
remove error code
Yisaer 9a9835e
update go.mod
Yisaer cea84d9
make fmt
Yisaer d763be2
Merge remote-tracking branch 'upstream/master' into stale_read
Yisaer 0135c0b
update tidy
Yisaer 6dbd542
fix mockTikvGrpcServer
Yisaer 0f51647
fix test
Yisaer 11ab014
Revert "fix test"
Yisaer f3e9fae
Merge branch 'master' into stale_read
Yisaer 4dff7a1
address the comment
Yisaer 6ae290d
Merge remote-tracking branch 'upstream/master' into stale_read
Yisaer b630959
address the comment
Yisaer 798ecb6
address the comment
Yisaer a0ab8ac
Merge remote-tracking branch 'upstream/master' into stale_read
Yisaer f03e716
Merge remote-tracking branch 'upstream/master' into stale_read
Yisaer fdc8e68
make tidy
Yisaer 5775100
Merge branch 'master' into stale_read
ti-chi-bot c985b5c
Merge branch 'master' into stale_read
ti-chi-bot 001a7cb
Merge branch 'master' into stale_read
ti-chi-bot 932dd12
fix race
Yisaer 3c869e0
Merge branch 'master' into stale_read
ti-chi-bot cb14023
Merge branch 'master' into stale_read
ti-chi-bot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back 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.
Why doesn't global scope support stale read?
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.
global scope
also support stale read. If the txnScope islocal
here, we should pickstore
which match the label.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.
So is it possible to also replace
build.txnScope
withbuilder.MatchStoreLabels
?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 it is unnecessary,
build.txnScope
is also responsible for(builder *RequestBuilder) verifyTxnScope()
.