一个好的问题描述有利于社区小伙伴更快帮你定位到问题,高效解决你的问题
【TiDB 使用环境】测试环境
【TiDB 版本】V8.5.3
【部署方式】虚拟机
【操作系统/CPU 架构/芯片详情】
【机器部署详情】CPU大小/内存大小/磁盘大小
【集群数据量】
【集群节点数】1PD+1KV+1TIDB
【问题复现路径】做过哪些操作出现的问题
【遇到的问题:问题现象及影响】
每隔10s,tidb日志就会报GC的报错。
[“plan replayer handle collect tasks failed”] [error=“[tikv:9006]GC life time is shorter than transaction duration, transaction starts at 2026-01-13 17:18:21.451 +0800 CST, GC safe point is 2026-01-14 11:34:53.463 +0800 CST”]
重启tidb,一段时间后也会继续告警。
【资源配置】进入到 TiDB Dashboard -集群信息 (Cluster Info) -主机(Hosts) 截图此页面
【复制黏贴 ERROR 报错的日志】
[2026/01/14 11:52:42.847 +08:00] [WARN] [domain.go:2241] [“plan replayer handle collect tasks failed”] [error=“[tikv:9006]GC life time is shorter than transaction duration, transaction starts at 2026-01-13 17:18:21.451 +0800 CST, GC safe point is 2026-01-14 11:34:53.463 +0800 CST”]
[2026/01/14 11:52:52.770 +08:00] [INFO] [advancer.go:668] [“No tasks yet, skipping advancing.”]
[2026/01/14 11:52:52.848 +08:00] [WARN] [domain.go:2241] [“plan replayer handle collect tasks failed”] [error=“[tikv:9006]GC life time is shorter than transaction duration, transaction starts at 2026-01-13 17:18:21.451 +0800 CST, GC safe point is 2026-01-14 11:34:53.463 +0800 CST”]
[2026/01/14 11:53:02.845 +08:00] [WARN] [domain.go:2241] [“plan replayer handle collect tasks failed”] [error=“[tikv:9006]GC life time is shorter than transaction duration, transaction starts at 2026-01-13 17:18:21.451 +0800 CST, GC safe point is 2026-01-14 11:34:53.463 +0800 CST”]
[2026/01/14 11:53:04.769 +08:00] [INFO] [advancer.go:668] [“No tasks yet, skipping advancing.”]
[2026/01/14 11:53:12.847 +08:00] [WARN] [domain.go:2241] [“plan replayer handle collect tasks failed”] [error=“[tikv:9006]GC life time is shorter than transaction duration, transaction starts at 2026-01-13 17:18:21.451 +0800 CST, GC safe point is 2026-01-14 11:34:53.463 +0800 CST”]
[2026/01/14 11:53:16.769 +08:00] [INFO] [advancer.go:668] [“No tasks yet, skipping advancing.”]
[2026/01/14 11:53:22.848 +08:00] [WARN] [domain.go:2241] [“plan replayer handle collect tasks failed”] [error=“[tikv:9006]GC life time is shorter than transaction duration, transaction starts at 2026-01-13 17:18:21.451 +0800 CST, GC safe point is 2026-01-14 11:34:53.463 +0800 CST”]
[2026/01/14 11:53:28.769 +08:00] [INFO] [advancer.go:668] [“No tasks yet, skipping advancing.”]
[2026/01/14 11:53:32.847 +08:00] [WARN] [domain.go:2241] [“plan replayer handle collect tasks failed”] [error=“[tikv:9006]GC life time is shorter than transaction duration, transaction starts at 2026-01-13 17:18:21.451 +0800 CST, GC safe point is 2026-01-14 11:34:53.463 +0800 CST”]
[2026/01/14 11:53:40.769 +08:00] [INFO] [advancer.go:668] [“No tasks yet, skipping advancing.”]
[2026/01/14 11:53:42.846 +08:00] [WARN] [domain.go:2241] [“plan replayer handle collect tasks failed”] [error=“[tikv:9006]GC life time is shorter than transaction duration, transaction starts at 2026-01-13 17:18:21.451 +0800 CST, GC safe point is 2026-01-14 11:34:53.463 +0800 CST”]
【其他附件:截图/日志/监控】
mysql> select *from information_schema.tidb_trx;
Empty set (0.00 sec)
mysql> SELECT * FROM mysql.plan_replayer_task;
Empty set (0.00 sec)
mysql> SELECT * FROM mysql.plan_replayer_status;
Empty set (0.01 sec)
mysql> select @@tidb_enable_plan_replayer_capture;
±------------------------------------+
| @@tidb_enable_plan_replayer_capture |
±------------------------------------+
| 0 |
±------------------------------------+
1 row in set (0.01 sec)
mysql> select version();
±-------------------+
| version() |
±-------------------+
| 8.0.11-TiDB-v8.5.3 |
±-------------------+
1 row in set (0.00 sec)