[MDEV-27829] SELECT SLEEP(1) Hangs indefinitely with Time 0 Created: 2022-02-14 Updated: 2022-02-16 Resolved: 2022-02-16 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | 10.5, 10.8 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Critical |
| Reporter: | Roel Van de Paar | Assignee: | Roel Van de Paar |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | hang, regression | ||
| Description |
|
The following:
When replayed using the C connector produces the following:
i.e. the sleep hangs, seemingly perpetually, and always with 0 time (using single threaded replay). Killing the query (KILL 7;) reports "OK" but the state remains unchanged. |
| Comments |
| Comment by Roel Van de Paar [ 2022-02-16 ] |
|
After more troubleshooting/pondering on this with a fresh head I worked out a bug in the framework. When SQL is shuffled (usually not used, unless issues are hard to reduce as shuffling can simplify sporadic issue reduction) the pquery binary will continue to execute SQL rather than limiting itself to the same length as the input file (as is the case with sequential replay). This situation is almost never seen, but having discovered this, it clarifies some odd memory hogging situations/dead simplification screens. Fixing it won't be too complex. Closing this ticket. |
| Comment by Roel Van de Paar [ 2022-02-16 ] |
|
Fixed in https://github.com/mariadb-corporation/mariadb-qa/commit/9bc502e7edf2a12022e806e21839463b94f51e8c |