[CONJ-426] PreparedStatement#executeBatch Does Not Properly Handle Interrupts Created: 2017-02-07 Updated: 2017-02-09 Resolved: 2017-02-09 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | Other |
| Affects Version/s: | 1.5.7 |
| Fix Version/s: | 1.5.8 |
| Type: | Bug | Priority: | Major |
| Reporter: | Kevin Conaway | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| 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:
The NPE is due a race condition. The thread was interrupted so it is returning before the results are available |
| Comments |
| Comment by Kevin Conaway [ 2017-02-07 ] | |||||||||||||||
|
Submitted PR: https://github.com/MariaDB/mariadb-connector-j/pull/99 | |||||||||||||||
| Comment by Diego Dupin [ 2017-02-09 ] | |||||||||||||||
|
correction (based on kevinconaway PR) is available in 1.5.8-SNAPSHOT, available using :
|