TiDB Execution Failure

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: tidb执行失败

| username: tidb狂热爱好者

【TiDB Usage Environment】Production, Testing, Research
【TiDB Version】6.1
【Encountered Problem】
【Reproduction Path】What operations were performed to cause the problem
【Problem Phenomenon and Impact】
image
mysql> analyze table bot_order;
ERROR 1317 (70100): Query execution was interrupted
mysql> set global max_execution_time=0;
Query OK, 0 rows affected (0.05 sec)

mysql> analyze table bot_order;
ERROR 1317 (70100): Query execution was interrupted

【Attachments】

Please provide the version information of each component, such as cdc/tikv, which can be obtained by executing cdc version/tikv-server --version.

| username: h5n1 | Original post link

First, check the current value of max_execution_time in the session. If you change the value, you need to log out and log back in.