-
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
config: add server level isolation read config #14440
config: add server level isolation read config #14440
Conversation
config/config.toml.example
Outdated
[isolation-read] | ||
# engines means allow the tidb server read data from which types of engines. options: "tikv", "tiflash", "tidb". | ||
engines = ["tikv", "tiflash", "tidb"] | ||
# labels means allow the tidb server read data from which labels. Empty set means all labels are allowed. |
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.
Could you explain more on the purpose of labels
in the comment? or the use cases of the labels
?
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
/rebuild |
0159d0e
to
69199e9
Compare
/rebuild |
/run-unit-test |
/run-all-tests |
@lzmhhh123 merge failed. |
/merge |
/run-all-tests |
@lzmhhh123 merge failed. |
/run-all-tests |
/rebuild |
/merge |
Your auto merge job has been accepted, waiting for 14530 |
/run-all-tests |
/run-unit-test |
@lzmhhh123 merge failed. |
What problem does this PR solve?
For isolation read. We have the global and session variable
tidb_isolation_read_engines
to control. But we can't control specific tidb-server to set isolation read. So we need a server-level config to control the isolation.What is changed and how it works?
When both the server-level isolation read and session-level isolation read exists. The access paths should be filtered by both of them.
Check List
Tests
Code changes
Related changes