-
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
executor, server: reduce connect/disconnect log spam (#19308) #20321
executor, server: reduce connect/disconnect log spam (#19308) #20321
Conversation
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
/run-all-tests |
LGTM |
From a security standpoint the information that there is a new connection could be very valuable and this might not be a minor change. In a normal thread pool based usage it also wouldn't be that spammy. |
There are a lot of MySQL connectors that don't commonly use thread pools (PHP, perl, etc.) The information is still available under debug level. |
Yes, but imagine someone tries to audit a security problem based on their info logs after doing a minor version upgrade and discovers this information is no longer in the logs. I 100% agree that the disconnect messages should be debug only. They would only be useful in an audit scenario if they showed something about the client identity as well. |
@ngaut, Thanks for your review, however we are sorry that your vote won't be count. |
/lgtm |
/merge |
/run-all-tests |
cherry-pick #19308 to release-4.0
What problem does this PR solve?
Issue Number: Part of #19053 (does not close issue)
Problem Summary:
Currently there is a lot of spam in the server error log related to client activity. This makes it hard to debug issues.
What is changed and how it works?
What's Changed:
This moves three Info log messages to be Debug messages instead:
This reduces the log spam in an oltp scenario (without a connection pool) quite considerably.
Related changes
Check List
Tests
I compiled the binary and ran
while true; do mysql -e 'select 1'; sleep 1; done;
in a loop. It looks much better.Side effects
Release note