-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Labels
affects-6.1This bug affects the 6.1.x(LTS) versions.This bug affects the 6.1.x(LTS) versions.affects-6.2affects-6.3affects-6.4affects-6.5This bug affects the 6.5.x(LTS) versions.This bug affects the 6.5.x(LTS) versions.affects-7.0affects-7.1This bug affects the 7.1.x(LTS) versions.This bug affects the 7.1.x(LTS) versions.affects-7.2epic/plan-cacheseverity/majorsig/plannerSIG: PlannerSIG: Plannertype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.
Description
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
Prepare sysbench table with 1,000,000 rows.
mysql> prepare stmt from 'select /*+ MAX_EXECUTION_TIME(1) */ sum(id) from sbtest1';
Query OK, 0 rows affected (0.00 sec)
mysql> execute stmt;
mysql> execute stmt; -- run it two times
2. What did you expect to see? (Required)
mysql> execute stmt;
ERROR 3024 (HY000): Query execution was interrupted, maximum statement execution time exceeded
mysql> execute stmt;
ERROR 3024 (HY000): Query execution was interrupted, maximum statement execution time exceeded
3. What did you see instead (Required)
mysql> execute stmt;
ERROR 3024 (HY000): Query execution was interrupted, maximum statement execution time exceeded
mysql> execute stmt;
+--------------+
| sum(id) |
+--------------+
| 501229432608 |
+--------------+
1 row in set (0.34 sec)
The second time executing this statament, the hint /*+ MAX_EXECUTION_TIME(1) */
do not take effect.
4. What is your TiDB version? (Required)
Release Version: v7.4.0-alpha
Edition: Community
Git Commit Hash: 522a00840385dfa43509a3af2bc79e6ff50252a8
Git Branch: heads/refs/tags/v7.4.0-alpha
UTC Build Time: 2023-08-03 14:26:07
GoVersion: go1.20.7
Race Enabled: false
Check Table Before Drop: false
Store: tikv
Metadata
Metadata
Assignees
Labels
affects-6.1This bug affects the 6.1.x(LTS) versions.This bug affects the 6.1.x(LTS) versions.affects-6.2affects-6.3affects-6.4affects-6.5This bug affects the 6.5.x(LTS) versions.This bug affects the 6.5.x(LTS) versions.affects-7.0affects-7.1This bug affects the 7.1.x(LTS) versions.This bug affects the 7.1.x(LTS) versions.affects-7.2epic/plan-cacheseverity/majorsig/plannerSIG: PlannerSIG: Plannertype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.