[CONJ-393] improve setQueryTimeout to use SET STATEMENT max_statement_time Created: 2016-11-24 Updated: 2017-01-26 Resolved: 2017-01-26 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | Other |
| Affects Version/s: | None |
| Fix Version/s: | 2.0.0-RC |
| Type: | Task | Priority: | Major |
| Reporter: | Diego Dupin | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Actual Statement.setQueryTimeout use one additional thread per query. Since server 10.1, MariaDB server has a command that permit server to handle that directly : https://mariadb.com/kb/en/mariadb/aborting-statements/ with command : SET STATEMENT max_statement_time=1 FOR "..." The solution has to be implemented. This has another advantage to be compatible with maxscale (existing connection is not, since the thread ID number is a fake Maxscale thread ID) |