[MDEV-28318] SHOW ANALYZE|EXPLAIN: Lock wait timeout with long GIS computations Created: 2022-04-14 Updated: 2023-12-07 |
|
| Status: | Stalled |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 10.2, 10.3, 10.4, 10.5, 10.6, 10.8 |
| Fix Version/s: | 10.11 |
| Type: | Bug | Priority: | Major |
| Reporter: | Sergei Petrunia | Assignee: | Sergei Petrunia |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
Take a statement doing long GIS computation (it takes minutes):
and try to run SHOW EXPLAIN (or SHOW ANALYZE) on it. The result will be:
Note that KILL or KILL QUERY are able to kill the statement. |
| Comments |
| Comment by Sergei Petrunia [ 2022-04-14 ] | |||||||||||
|
Investigation: GIS code uses a "non-standard" way to check if the computation is terminated:
...
..
This logic allows to check if the thread is killed but doesn't check if there's a need to process SHOW EXPLAIN query. | |||||||||||
| Comment by Sergei Petrunia [ 2022-04-27 ] | |||||||||||
|
Note that this is reproducible with older versions as well. Any version that supports SHOW EXPLAIN is affected. |