What is the reason for the TiCDC synchronization task state being "failed" with the code "CDC:ErrGCTTLExceeded"?

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

Original topic: ticdc同步任务state为“failed”,code是“CDC:ErrGCTTLExceeded”,出现这种情况的原因是什么呢?

| username: min82wecv

Is this issue occurring because there hasn’t been any data change for a long time?

| username: songxuecheng | Original post link

Refer to this: TiCDC 常见问题解答 | PingCAP 文档中心

The task has an issue and has stopped for more than the gc ttl setting of 24 hours.

| username: min82wecv | Original post link

Okay, I will take a closer look.

| username: min82wecv | Original post link

After reading this, I understand that the condition for a failure is a stall exceeding the default 24 hours. So if there is no data change within 24 hours, does that also count as a task stall?

| username: songxuecheng | Original post link

The main method is to check through checkpoint-ts. According to tests, even if there are no transaction changes, checkpoint-ts is still constantly changing. This issue only occurs when an error is encountered. However, you can appropriately adjust the gc ttl value to avoid it.

| username: songxuecheng | Original post link

Confirmed, even if there are no transaction changes, it is still fine after 24 hours.

| username: system | Original post link

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