-
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,sessionctx: add correctness for system variables #12311
Conversation
## What Add restriction for system variable `thread_pool_size`. ## Reference 1. [MySQL global variable: thread_pool_size](https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_version_compile_os) 2. [TiDB guide to cover more restrictions on system variable ](pingcap#7195)
Hi @spongedu @djshow832 Could you please help to review my code? Thanks! |
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
@xiaoronglv Thanks for your contribution, please follow the Commit Message and Pull Request Style to reformat the PR title. |
Hi, @zz-jason Thanks for your review. I have changed the title based on your review. |
This pr has been pending for days. Could you please merge it? |
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.
/run-all-tests |
/run-all-tests |
@xiaoronglv merge failed. |
I am checking the failing test, will fix it soon. |
Codecov Report
@@ Coverage Diff @@
## master #12311 +/- ##
===============================================
+ Coverage 79.8891% 79.9541% +0.065%
===============================================
Files 460 461 +1
Lines 102636 103403 +767
===============================================
+ Hits 81995 82675 +680
- Misses 14677 14751 +74
- Partials 5964 5977 +13 |
/run-all-tests |
it seems the hosts, which are used to run test framework, are not stable. That caused test failed.
|
/run-all-tests |
@lance6716 Thanks for your help. |
cherry pick to release-3.0 failed |
cherry pick to release-3.1 failed |
cherry pick to release-2.1 failed |
@xiaoronglv Could you help us cherry-pick this commit to the release-2.1, release-3.0 and release-3.1 branches? |
Hi @zz-jason , sure, I can do it manually. |
Hi @zz-jason As you requested, I manually cherry pick this commit from master to the following branches
release-2.1 failed to pick this commit due to missing some key commits, which are not cherry picked before. Regarding this commit, can we ignore release-2.1? If the answer is yes, I am going to close PR for release-2.1 |
There might be other session variable validation PRs not cherry picked to release-2.1 |
What problem does this PR solve?
For MySQL, thread_pool_size is the number of thread groups, which determine how many queries can execute simultaneously.
This commit is to add constraints for global variable thread_pool_size for TiDB, which is a subtask of epic Complete correctness for system.
What is changed and how it works?
Add restriction for global variable
thread_pool_size
, of whichCheck List
Tests
Code changes
Side effects