Issues Related to TiCDC

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

Original topic: ticdc 相关问题

| username: Raymond

Dear teachers,

  1. If data is accidentally deleted from the production cluster and then restored using BR, will this restored data not be synchronized to the local or disaster recovery cluster through TiCDC?

  2. Suppose we need to set up a TiDB replica cluster. By backing up and restoring the full data from the primary cluster and obtaining the TSO, TiCDC can start synchronization based on this TSO. Is there a situation where TiKV performs GC at this time, and the data that needs to be synchronized is cleaned up?

| username: xfworld | Original post link

  1. BR itself supports incremental backup and incremental recovery. TiCDC is mainly used for real-time data synchronization. If the cluster is restored through BR, CDC will not process this part of the data. However, you can use BR to restore another cluster if necessary; in my opinion, the data copy of the other cluster will definitely be newer, so it is better to switch the CDC mode at this time, promote the secondary to primary, and demote the primary to secondary, and synchronize through reverse CDC.

  2. TiCDC has checkpoint records. Even if TiKV GC occurs, TiCDC also has a configuration that can ensure changes within the time range will be transmitted.