Details
-
Bug
-
Status: Confirmed (View Workflow)
-
Major
-
Resolution: Unresolved
-
N/A
-
None
Description
The error shown when MAX_EXECUTION_TIME is exceeded:
ERROR 1969 (70100): Query execution was interrupted (max_statement_time exceeded)
|
Is incorrect and can confuse users, as it refers to max_statement_time, another variable which is defined in seconds
(rather than milliseconds like with MAX_EXECUTION_TIME) and employed, for example, in queries like:
SET STATEMENT max_statement_time=1 FOR SELECT SLEEP(1.5); |
Which differ from queries using MAX_EXECUTION_TIME hints.
An improved message would be:
ERROR 1969 (70100): Query execution was interrupted (MAX_EXECUTION_TIME exceeded)
|
Also note the statement vs execution time word difference.
Attachments
Issue Links
- is caused by
-
MDEV-34860 Implement MAX_EXECUTION_TIME hint
-
- Stalled
-
I believe we should better come up with a more common message for both cases, because having two error codes for basically the same scenario doesn't seem reasonable.