TiDB 日志报错 ERROR 1105 (HY000),请教下是什么原因?

ERROR 1105 (HY000): BatchInsert failed with error: [try again later]: con:3877 txn takes too much time, start: 405023027269206017, commit: 405023312534306817

版本:v2.1.0-rc

原因: 由于 insert into select SQL 中,select 时间比较长,超过 max-txn-time-use 默认配置 590 s,导致报错。

受影响版本: ALL Release

解决方法: 推荐修改 TiDB 配置文件,调整 max-txn-time-use 时间(需要重启 TiDB Server)。需要注意的是 max-txn-time-use 要小于 gc_life_time - 10 s。或者优化 SQL,让 select 时间变短。

请问下tidb v2.0.2可以通过该参数进行优化吗?

建议在 3.0 以上版本使用

大佬查询sql时候报错:
SQL state [HY000]; error code [1105]; other error: [src/coprocessor/endpoint.rs:167]: WireError(OverRecursionLimit); nested exception is java.sql.SQLException: other error: [src/coprocessor/endpoint.rs:167]: WireError(OverRecursionLimit)

您好,建议创建新的帖子跟进问题。从日志报错看,应该是请求 TiKV 出现非预期的报错,需要提供 TiDB 的日志,排查原因。