-
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
[logutil]: Fix MaxDays
and MaxBackups
not working for slow-query-logger
#27625
[logutil]: Fix MaxDays
and MaxBackups
not working for slow-query-logger
#27625
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. |
@bb7133 PTAL |
/run-check_dev_2 |
Hi @SabaPing did you verified the change locally? |
Please provide a 'manual test' in the PR description, thanks! |
/run-check_dev_2 |
I have tested it, /cc @bb7133 |
/run-check_dev_2 |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 9667580
|
/run-check_dev_2 |
Signed-off-by: ti-srebot <[email protected]>
cherry pick to release-5.2 in PR #29921 |
/run-cherry-picker |
Signed-off-by: ti-srebot <[email protected]>
cherry pick to release-5.1 in PR #30171 |
Signed-off-by: ti-srebot <[email protected]>
cherry pick to release-5.3 in PR #30172 |
What problem does this PR solve?
Fix
MaxDays
andMaxBackups
not working for slow-query-loggerIssue Number: #25716
Problem Summary:
MaxDays
andMaxBackups
not working for slow-query-logger. This may causes unexpected disk usage.What is changed and how it works?
Tests
Manual test steps
Test
MaxDays
:slowlog
.slowlog-2021-11-01T23-00-00.001
slowlog-2021-11-01T23-00-00.001
got deleted.Test
MaxBackups
:slowlog
.slowlog-2021-11-01T23-00-00.001
andslowlog-2021-11-02T23-00-00.001
.slowlog-2021-11-01T23-00-00.001
got deleted.Side effects
Documentation
Release note