Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
1.5.7
-
None
Description
The PreparedStatement#executeBatch() functionality does not properly handle interrupts when the thread is interrupted while waiting on a response from the server.
The InterruptedException is currently being swallowed in AbstractMultiSend instead of being propagated back to the caller.
This manifested as a NullPointerException:
java.lang.NullPointerException: null
|
at org.mariadb.jdbc.MariaDbServerPreparedStatement.executeBatch(MariaDbServerPreparedStatement.java:276) ~[mariadb-java-client-1.5.7.jar:na]
|
...snip...
|
The NPE is due a race condition. The thread was interrupted so it is returning before the results are available