Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.5.7
-
Fix Version/s: 1.5.8
-
Component/s: Other
-
Labels: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