[MXS-4961] Result of KILL CONNECTION_ID() does not propagate all the way to the client Created: 2024-02-01  Updated: 2024-02-02  Resolved: 2024-02-02

Status: Closed
Project: MariaDB MaxScale
Component/s: readwritesplit
Affects Version/s: 6.4.13, 22.08.11, 23.02.8, 23.08.4
Fix Version/s: 23.08.5

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


 Description   

When the client kills its own connection, the error is not forwarded to the client like one would expect. MaxScale does receive it and reads it correctly but there's code in readwritesplit that ignores the ER_CONNECTION_KILLED error if it's ever read. This is done because the query that was killed may be retried in handleError.

The behavior is partially correct (by accident) in versions prior to 23.08 where it the ER_CONNECTION_KILLED error number is used for all errors that are sent by the related code. In 23.08 the APIs changed so that only the error string is passed to the API. This can be "fixed" in 23.08 to be identical to the old behavior by passing the last MariaDB error message to the client protocol's kill() function.


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