-
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
*: add global/instance variable to config top sql #24934
Merged
Merged
Changes from 4 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
dc18204
*: add global/instance variable to config top sql
crazycs520 4b00877
fix test
crazycs520 2b5a7eb
Merge branch 'master' of https://github.com/pingcap/tidb into top-sql…
crazycs520 6522259
Merge branch 'master' of https://github.com/pingcap/tidb into top-sql…
crazycs520 cc0837a
address comment and remove useless code
crazycs520 dd1b451
move top sql variable from config to variable
crazycs520 fa1b5c3
Merge branch 'master' of https://github.com/pingcap/tidb into top-sql…
crazycs520 a553c05
Merge branch 'master' into top-sql-config
crazycs520 4c70e71
address comment to change default value and max value
crazycs520 0f8274c
Merge branch 'top-sql-config' of https://github.com/crazycs520/tidb i…
crazycs520 e86fa65
Merge branch 'master' into top-sql-config
crazycs520 3dd6ac8
Merge branch 'master' into top-sql-config
ti-chi-bot 0dbcec5
Merge branch 'master' into top-sql-config
ti-chi-bot c0ac680
Merge branch 'master' into top-sql-config
ti-chi-bot 38f257a
use serial test
crazycs520 4b953d9
Merge branch 'master' into top-sql-config
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
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.
Can you explain why the
toml
andjson
names are blanked out - is the goal to no longer specify them in toml, but instead use them in sysvars?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.
Because the TopSQL feature doesn't want to provide a config item in the TiDB config file, only provide the
instance/global
variable to control.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.
@breeswish PTAL
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.
Because I think it is hard for the user to understand in this situation:
The user changes the config item in config file and restart the TiDB server, then which value takes effect? the config value or the global variable value? It will confuse the user.
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.
As an instance config that is not placed in the config file, is it necessary to be inside the
config.go
?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.
Just for coding convenience. Of course, we can use a unique global variable to do it. Should we ?
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 will add a new global variable to store the
TopSQL
config, and remove it fromconfig pkg
.