Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cdc: add description about ticdc lightning compatibility #19047

Merged
merged 11 commits into from
Nov 13, 2024
21 changes: 18 additions & 3 deletions ticdc/ticdc-compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,25 @@ summary: 了解 TiCDC 兼容性相关限制和问题处理。

本文介绍了与 TiCDC 有关的一系列兼容性问题及其处理方案。

<!--
## 组件兼容性矩阵
## TiCDC 和其他 TiDB 组件的兼容性
3AceShowHand marked this conversation as resolved.
Show resolved Hide resolved

TODO
### TiCDC 和 Lightning 的兼容性
3AceShowHand marked this conversation as resolved.
Show resolved Hide resolved

Lightning 支持逻辑模式和物理模式两种模式。

逻辑模式以向 TiDB 执行 SQL 语句的方式导入数据。这部分数据可以正常被 TiCDC 同步。操作步骤如下:

1. 创建 changefeed
2. 启动 Lightning,以逻辑模式模式导入数据

物理模式以向 TiKV 插入 SST 文件的方式导入数据。当前阶段,TiCDC 和 Lightning 物理模式并不兼容,不同步由该模式导入的数据。

如果下游集群是 TiDB,操作步骤如下:

1. 分别向上下游 TiDB 集群导入数据,保证上下游集群的数据一致性
3AceShowHand marked this conversation as resolved.
Show resolved Hide resolved
2. 创建 changefeed,同步上游集群正常写入的数据到下游
3AceShowHand marked this conversation as resolved.
Show resolved Hide resolved

如果下游是其他类型数据系统,可以自行编写程序,将 Lightning 的输入文件内容写入到下游系统中,再创建 changefeed 同步正常写入的数据。
3AceShowHand marked this conversation as resolved.
Show resolved Hide resolved

3AceShowHand marked this conversation as resolved.
Show resolved Hide resolved
## 特性兼容性矩阵

Expand Down