Bug #73823 Logs flooded by default with new 'Note' level items
Description:
By default 'Note' level logging is enabled on MySQL server. This is great, there are many useful things in this. One thing that isn't useful is:
"[Note] Aborted connection .... (Got an error reading communication packets)"
This happens every time an idle connection is disconnected without gracefully sending COM_QUIT first. Multiple this up by hundreds of connections per second and the log file explodes in size. This creates a potential performance problem (and probably a disk usage problem over time).
How to repeat:
1. connect to the MySQL server using the command line client
2. killall mysql
Suggested fix:
1. If the connection is idle, don't log this. MySQL should be able to handle clients not exiting cleanly anyway without any problem. It should also know when we have received the first packet and therefore in a command state and therefore this is a legitimate log line.
or
2. If a log line is repeated X times in quick succession then just output that the previous message was repeated X times, much like syslog.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.048 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.