线上cdc任务报了很多warn【the local resolved ts is less than the global resolved ts】

tidb版本 4.0.13

操作:无

现象:cdc任务一直卡在一个点位,即"checkpoint-ts" : 458626600505180276,一直不动,四个多小时了。查看cdc日志发现一直在刷warn,具体如下,这个问题发生很多次了。

不知道是不是bug?如果是bug,触发的原因是什么呢?


排查一下是不是 时间戳的问题

重复的 the local resolved ts is less than the global resolved ts ,说明代码逻辑里在对比本地和全局时间戳,且本地小于全局,触发警告。

http://:/debug/pprof/heap

看一下这个的结果

可以看一下这个问题

版本太低了,尝试重启 changefeed 试下