-
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
*: move config file options prepared-plan-cache.* to sysvars #34790
Conversation
[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. |
#34752 was closed by some mistake, I submit a new PR for it. PTAL @bb7133 @tiancaiamao @morgo @CbcWestwolf |
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
tidb-server/main.go
Outdated
if config.CheckTableBeforeDrop { | ||
plannercore.SetPreparedPlanCache(true) | ||
} |
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 will be reverted as soon as the sysvarcache is regenerated :(
plannercore.SetPreparedPlanCache() calls variable.PreparedPlanCacheSize.Store() without using the SQL interface.
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.
It's only for tests, so it seems OK to use SetPreparedPlanCache
here. I leave a comment there and plan to remove SetPreparedPlanCache
in the next Sprint.
/run-all-tests |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 7dc77ce
|
/run-mysql-test |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 6cced75
|
/rebuild |
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/2cd4e6d5833ad33cad471da3d4453cf8f9947e79 |
TiDB MergeCI notify✅ Well Done! New fixed [1] after this pr merged.
|
What problem does this PR solve?
Issue Number: ref #33769, close #30168
Previous closing PR: #33836
Problem Summary:
The options prepared-plan-cache.* have historically been config options. But based on requirements from cloud & PM they should instead be sysvars.
What is changed and how it works?
Remove them from the config list and add them to global sysvars.
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.