We're updating the issue view to help you get more done. 

Prepare statement cache race condition

Description

A user report an bug in version 1.3.6 producing the following error :

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 org.mariadb.jdbc.internal.util.dao.QueryException: Unknown prepared statement handler (16) given to mysqld_stmt_execute at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.getResult (AbstractQueryProtocol.java:479) at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.executePreparedQuery (AbstractQueryProtocol.java:592) at sun.reflect.GeneratedMethodAccessor75.invoke (Unknown source) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:497) at org.mariadb.jdbc.internal.failover.AbstractMastersListener.invoke (AbstractMastersListener.java:310) at org.mariadb.jdbc.internal.failover.FailoverProxy.invoke (FailoverProxy.java:134) at com.sun.proxy.$Proxy79.executePreparedQuery (Unknown source) at org.mariadb.jdbc.MariaDbServerPreparedStatement.executeInternal (MariaDbServerPreparedStatement.java:279) at org.mariadb.jdbc.MariaDbServerPreparedStatement.execute (MariaDbServerPreparedStatement.java:369) at com.zaxxer.hikari.pool.ProxyPreparedStatement.execute (ProxyPreparedStatement.java:44) at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.execute (Unknown source) at org.skife.jdbi.v2.SQLStatement.internalExecute (SQLStatement.java:1328) at org.skife.jdbi.v2.Query.fold (Query.java:173) at org.skife.jdbi.v2.Query.first (Query.java:273) at org.skife.jdbi.v2.Query.first (Query.java:264) at org.skife.jdbi.v2.sqlobject.ResultReturnThing$SingleValueResultReturnThing.result (ResultReturnThing.java:112) at org.skife.jdbi.v2.sqlobject.ResultReturnThing.map (ResultReturnThing.java:48) at org.skife.jdbi.v2.sqlobject.QueryHandler.invoke (QueryHandler.java:45) at org.skife.jdbi.v2.sqlobject.SqlObject.invoke (SqlObject.java:175) at org.skife.jdbi.v2.sqlobject.SqlObject$1.intercept (SqlObject.java:75)

Environment

None

Status

Assignee

Diego Dupin

Reporter

Diego Dupin

Labels

None

External issue ID

None

External issue ID

None

Components

Fix versions

Affects versions

1.3.5
1.3.4
1.3.3
1.3.1
1.3.2
1.3.6

Priority

Blocker