[Q&A Review] TiCDC Source Code Analysis #5 | Introduction to TiCDC DDL Event Handling Logic and Filter Implementation

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

Original topic: 【Q&A 回顾】TiCDC 源码解读#5 | TiCDC DDL 事件处理逻辑 与 Filter 实现介绍

| username: TiDB社区小助手

This article is the fifth installment of the TiCDC source code interpretation series - TiCDC DDL event processing logic and Filter implementation introduction. It includes a Q&A summary, video review, and a collection of downloadable sharing materials. If you have more to discuss about this session, feel free to leave a comment below.

Q&A Review of This Session

Below is the Q&A review of this session “TiCDC DDL Event Processing Logic and Filter Implementation Introduction”:

Q: Does create index also block DML? Is create index an extraction operation, or does it extract index key-value? Does blocking DML refer to the operation or the index key-value stage?
A: It will block DML; when the upstream executes create index, TiCDC needs to update the schema information of the corresponding table in memory and then synchronize this DML to the downstream; blocking DML means that all DML events occurring after this DDL need to wait for TiCDC to synchronize this DDL to the downstream before continuing to synchronize.

Q: Do you need to understand raft to understand TiCDC?
A: This session does not require understanding raft. If you want to know how TiCDC obtains incremental data from the TiKV cluster, it is recommended to watch the second live broadcast of the TiCDC source code reading.

Q: Is data synchronization serial or parallel?
A: TiCDC synchronizes DML data in parallel and DDL data serially, ensuring the order of DDL and DML.

Announcement of Live Interaction Winners

Congratulations to the following users who participated in the interaction and won! You can receive 100 TiDB community points/question.

The following users can add WeChat ID: Oneandtwii before February 10, 2023, and reply with: Your video account nickname + TiDB community nickname to redeem points.

No. Video Account User
1 土豆*2
2 冯老爷
3 末想

If you have more to discuss about this session, feel free to leave a comment below.

| username: Kongdom | Original post link

:call_me_hand: :call_me_hand: :call_me_hand: