[MXS-4735] Connection IDs are missing from error messages Created: 2023-08-31  Updated: 2023-09-06  Resolved: 2023-09-06

Status: Closed
Project: MariaDB MaxScale
Component/s: Core, readwritesplit
Affects Version/s: 2.5.28, 6.4.10, 22.08.8, 23.02.4
Fix Version/s: 2.5.29, 6.4.11, 22.08.9, 23.02.5, 23.08.1

Type: Bug Priority: Major
Reporter: markus makela Assignee: markus makela
Resolution: Fixed Votes: 1
Labels: None


 Description   

The error messages that MaxScale logs whenever a connection to a server is lost does not log the connection ID of the backend connection nor the session ID in MaxScale. This makes it very hard to figure out which errors on the backend server relate to this session in MaxScale. The backend connection ID information is available even now but it's only in the log_info output that's too verbose to be kept on permanently. The session ID is also available in all the MaxScale log messages but if the driver does not print the connection ID, it will be difficult to map client errors to the MaxScale session.

The errors generated by the protocol modules for all fatal errors should thus contain the MaxScale session ID and the connection ID on the backend server if the authentication has reached that point.



 Comments   
Comment by markus makela [ 2023-09-06 ]

The error messages that originate due to a network error now contain the MaxScale session ID as well as the thread ID in the MariaDB server if the connection proceeded past authentication.

Generated at Thu Feb 08 04:30:46 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.