Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: ticdc 报错 a single changefeed exceed etcd txn max size:1310720
[TiDB Usage Environment] Production Environment
[TiDB Version] v5.4.2
[Encountered Problem: Problem Phenomenon and Impact]
CDC synchronization fails to start after an abnormal restart.
The error indicates that the txn size is too large.
After version 6.1, CDC supports transaction splitting.
Currently, the version can only split transactions at the service level to reduce transaction size.
Can I use CDC 6.1 to run on a TiDB 5.4 cluster?
No, the versions of TiDB components should ideally be consistent…
Moreover, 5.X and 6.X have a major version difference, which is likely to be incompatible…
Alright, I’ll use BR then, since the business can’t be changed immediately. Thanks for the reply.
Hello, this error means that the metadata information contained in a changefeed has exceeded the size that a single etcd transaction can handle. This issue is likely caused by a changefeed synchronizing too many tables. How many tables are you synchronizing with a single changefeed?
If you are not willing to upgrade the CDC version, the possible solutions are as follows:
- Record the current checkpointTs of the changefeed.
- Stop the GC of the upstream TiDB cluster.
- Delete the metadata of the changefeed in etcd.
- Start a new synchronization task, set the startTs to the recorded checkpointTs, and ensure that each changefeed does not synchronize more than 500 tables.
This issue has been resolved in version 6.0.0 and later. You might consider using CDC version 6.1.2 for synchronization. According to current test results, CDC 6.1.2 is compatible with TiDB 5.4.2.
1969 tables, 1 changefeed
I have already deleted the etcd metadata and resynchronized.
PS: If CDC has a txn exception, it will restart in a loop. You can only manage it by operating etcd. I hope the official team provides some command instructions for easier management.
Is there any documentation that explains which versions of CDC are backward compatible with which versions of TiKV? Can 6.1.2 CDC be compatible with 5.2.3?
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.