Skip to content

Commit

Permalink
dev, v8.2, and v8.3: add v8.1.1 to ticdc split behavior for update ev…
Browse files Browse the repository at this point in the history
…ents (pingcap#18333)
  • Loading branch information
qiancai authored Aug 27, 2024
1 parent bc20dd4 commit b7782ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ticdc/ticdc-split-update-behavior.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ aliases: ['/zh/tidb/dev/ticdc-behavior-change']

## MySQL Sink 拆分 `UPDATE` 事件行为说明

从 v6.5.10、v7.5.2、v8.2.0 开始,当使用 MySQL Sink 时,TiCDC 的任意节点每次收到某张表的同步任务请求并开始向下游同步数据之前,会从 PD 获取当前的时间戳 `thresholdTS`,并根据时间戳的值决定是否拆分对应表的 `UPDATE` 事件:
从 v6.5.10、v7.5.2、v8.1.1、v8.2.0 开始,当使用 MySQL Sink 时,TiCDC 的任意节点每次收到某张表的同步任务请求并开始向下游同步数据之前,会从 PD 获取当前的时间戳 `thresholdTS`,并根据时间戳的值决定是否拆分对应表的 `UPDATE` 事件:

- 对于含有单条或多条 `UPDATE` 变更的事务,如果该事务的 `commitTS` 小于 `thresholdTS`,在写入 Sorter 模块之前 TiCDC 会将每条 `UPDATE` 事件拆分为 `DELETE``INSERT` 两条事件。
- 对于事务的 `commitTS` 大于或等于 `thresholdTS``UPDATE` 事件,TiCDC 不会对其进行拆分。详情见 GitHub issue [#10918](https://github.com/pingcap/tiflow/issues/10918)
Expand Down Expand Up @@ -146,11 +146,11 @@ COMMIT;
| 版本 | 协议 | 拆分主键或唯一键 `UPDATE` 事件 | 不拆分主键或唯一键 `UPDATE` 事件 | 备注 |
| -- | -- | -- | -- | -- |
| <= v7.5.2 | 所有协议 | ✓ | ✗ | |
| \>= v7.5.3(待发布) | 所有协议 | ✓ (默认值:`output-raw-change-event = false`) | ✓ (可选配置项:`output-raw-change-event = true`) | |
| \>= v7.5.3 | 所有协议 | ✓ (默认值:`output-raw-change-event = false`) | ✓ (可选配置项:`output-raw-change-event = true`) | |

#### Release 8.1 的兼容性

| 版本 | 协议 | 拆分主键或唯一键 `UPDATE` 事件 | 不拆分主键或唯一键 `UPDATE` 事件 | 备注 |
| -- | -- | -- | -- | -- |
| v8.1.0 | 所有协议 | ✓ | ✗ | |
| \>= v8.1.1(待发布) | 所有协议 | ✓ (默认值:`output-raw-change-event = false`) | ✓ (可选配置项:`output-raw-change-event = true`) | |
| \>= v8.1.1 | 所有协议 | ✓ (默认值:`output-raw-change-event = false`) | ✓ (可选配置项:`output-raw-change-event = true`) | |

0 comments on commit b7782ad

Please sign in to comment.