[MXS-4416] Stalling connection after running some command Created: 2022-11-25  Updated: 2022-12-02  Resolved: 2022-12-01

Status: Closed
Project: MariaDB MaxScale
Component/s: Core
Affects Version/s: 22.08.2
Fix Version/s: 22.08.3

Type: Bug Priority: Critical
Reporter: Diego Dupin Assignee: markus makela
Resolution: Fixed Votes: 0
Labels: None


 Description   

This occurs only with version 22.08.2 (tested with 6.4.3 without issue)
I have not exactly point the problem, but i can reproduced it every time.

To reproduce : run a test case from r2dbc connector (have java and maven installed)

git clone https://github.com/mariadb-corporation/mariadb-connector-r2dbc
cd mariadb-connector-r2dbc
git checkout develop

change values of src/test/conf.properties to maxscale server

then run

mvn test -Dtest=StatementTest#metadataNotSkipped

the test never ends.
directly using server or maxscale 6.4.3 works ok



 Comments   
Comment by markus makela [ 2022-11-30 ]

Running just mvn test seems to at least hit a debug assertion in readwritesplit.

Comment by markus makela [ 2022-11-30 ]

Found a bug in the resultset tracking code which didn't increment the iterators correctly. This resulted in MaxScale thinking that more data would arrive and it queued all future queries. This pretty much explais why it hanged.

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