Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: Tikv CDC的增量扫数据会受到最近一次DDL的影响,发生DDL后,只能获取该DDL之后的增量数据,之前的数据将会丢失。

[Test Environment for TiDB] Testing
[TiDB Version] 5.4.3
[Reproduction Path] Use the TiKV client in Java to send a CDC request with the same startTs and receive a batch of incremental scan data. Then perform a DDL operation and send the request again with the same startTs, but only the incremental scan data after the DDL can be obtained.
[Encountered Problem: Phenomenon and Impact]
The incremental scan data of TiKV CDC is affected by the most recent DDL operation. After performing a DDL, only the incremental data after the DDL can be retrieved, and the data before the DDL will be lost.