Ask a question about how TiDB handles it

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 Environment / Testing / Poc
[TiDB Version]
[Reproduction Path] What operations were performed when the issue occurred
I set max-execution-time=2000
Now DDL reports an error. How can I prevent DDL from being affected?
[Encountered Issue: Issue Symptoms and Impact]
[Resource Configuration]
[Attachments: Screenshots / Logs / Monitoring]

| username: 我是咖啡哥 | Original post link

Modify it at the session level and then execute the DDL?

| username: h5n1 | Original post link

This parameter also affects DDL, which feels a bit unreasonable. It should only target DML. It would be better if there were parameters to control whether it takes effect for DDL. You can provide feedback or raise an issue. Temporarily increase it during DDL operations.

| username: WalterWj | Original post link

If you want to restrict the application, it is recommended to configure variable set in JDBC.

| username: TiDBer_T88qV9vv | Original post link

Check the official website, the unit is milliseconds. If the DDL time exceeds 2 seconds, an error will be reported.
MAX_EXECUTION_TIME(N) limits the execution time of the statement to within N milliseconds. If it times out, the server will terminate the execution of the statement.
The following Hint sets a timeout of 1000 milliseconds (i.e., 1 second):

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.