Bug #105472 Report username/host/socket in error MY-013129 or maybe MY-001158
Description:
I see quite a few logs with this:
2021-11-04T09:15:02.638678Z 0 [ERROR] [MY-013129] [Server] A message intended for a client cannot be sent there as no client-session is attached. Therefore, we're sending the information to the error-log instead: MY-001158 - Got an error reading communication packets
2021-11-04T09:15:02.638693Z 0 [ERROR] [MY-013129] [Server] A message intended for a client cannot be sent there as no client-session is attached. Therefore, we're sending the information to the error-log instead: MY-001158 - Got an error reading communication packets
2021-11-04T09:15:02.639117Z 0 [ERROR] [MY-013129] [Server] A message intended for a client cannot be sent there as no client-session is attached. Therefore, we're sending the information to the error-log instead: MY-001158 - Got an error reading communication packets
2021-11-04T09:15:02.639155Z 0 [ERROR] [MY-013129] [Server] A message intended for a client cannot be sent there as no client-session is attached. Therefore, we're sending the information to the error-log instead: MY-001158 - Got an error reading communication packets
Some MySQL servers I manage have tens of thousands of connections from a large number of different hosts.
The above information is unhelpful as it does not indicate the most important information:
- client username
- client host/socket
This would allow me to determine if the same user has a problem, if the problem is from a specific host or it is a generic problem. Right now that information is not available and resolving this should be straight-forward.
How to repeat:
Check logging on a server which has such error messages.
Suggested fix:
Improve logging along the lines of:
2021-11-04T09:15:02.639155Z 0 [ERROR] [MY-013129] [Server] A message intended for a client 'some_user'@'some-host.com' cannot be sent there as no client-session is attached. Therefore, we're sending the information to the error-log instead: MY-001158 - Got an error reading communication packets
Using the ip address also works but I think the performance_schema.host_cache already handles this.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.077 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.