[MXS-3929] connection stalled after executing a stored procedure with OUT parameter Created: 2021-12-23  Updated: 2022-01-05  Resolved: 2022-01-03

Status: Closed
Project: MariaDB MaxScale
Component/s: Core
Affects Version/s: 6.2.0
Fix Version/s: 6.2.1

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


 Description   

tested successfully with 2.5.12, this only occurs on 6.x version

After execution of a stored procedure using binary protocol that contains OUT parameters, command is successful, but connection is stalled : any another command send won't have any response.

example to reproduced :

try (Connection c = DriverManager.getConnection("jdbc:mariadb://localhost:4006/testj?user=boby&password=heyPassword")) {
            Statement stmt = c.createStatement();
            stmt.execute("DROP PROCEDURE IF EXISTS basic_proc");
            stmt.execute("CREATE PROCEDURE basic_proc (INOUT t2 INT) BEGIN \n"
                            + "set t2 = t2  + 1;\n"
                            + "END");
 
            c.createStatement().execute("SELECT 1");
 
            try (CallableStatement prep = c.prepareCall("{call basic_proc(?)}")) {
                prep.setInt(1, 2);
                prep.executeQuery();
                c.createStatement().execute("SELECT 1");
            }
        }


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