-
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
log: support reloading tidb-query-max-log-len after modified #12491
Conversation
@fzhedu Thanks for your contribution! Please follow the Commit Message and Pull Request Style guide to reformat the PR title. BTW, you can use the keywords described in the Closing issues using keywords guide to close the related issue when this PR is merged. |
@fzhedu please remove all the irrelevant changes. |
…port tidb_query_log_max_len reload after modified
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
Should we add it into the release note? |
|
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
Codecov Report
@@ Coverage Diff @@
## master #12491 +/- ##
===========================================
Coverage 79.8869% 79.8869%
===========================================
Files 461 461
Lines 103803 103803
===========================================
Hits 82925 82925
Misses 14791 14791
Partials 6087 6087 |
/run-all-tests |
/merge |
What problem does this PR solve?
improve the usability for the
tidb-query-max-log-len
What is changed and how it works?
change the default value of
tidb-query-max-log-len
from 2048 to 4096, and support reloadingtidb-query-max-log-len
after modified in the config file.Check List
Tests
step 1: select the current value:
select @@tidb_query_log_max_len;
step 2: change the value of
tidb-query-max-log-len
in the config filestep 3: reload the config
curl -X GET http://127.0.0.1:10080/reload-config
step 4: re-select the value:
select @@tidb_query_log_max_len;
Code changes
Release note
tidb-query-max-log-len
from 2048 to 4096, and support reloadingtidb-query-max-log-len
after modified in the config file.