Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: 更新操作在cdc中被解析为删除+新增(升级v7.1.3)

Bug Report
Clearly and accurately describe the issue you found. Providing any steps to reproduce the problem can help the development team address the issue promptly.
[TiDB Version] v7.1.3
[Impact of the Bug]
The downstream data derived from the CDC incremental logs shows a large number of delete and then insert operations, causing the downstream business update volume to increase rapidly. It is currently unclear whether this is an issue with the CDC incremental log capture or if the database is indeed performing delete and then insert operations. At least from CDC to Kafka and CDC to storage, it has been confirmed that some update operations are indeed broken down into delete + update.
Correction: Manual updates can also reproduce the issue. Updating certain fields will reproduce the issue, while others will not.
The final test result is: updating unique fields will cause the issue.
[Possible Steps to Reproduce the Issue]
Upgrade from version v7.1.1 to v7.1.3
[Observed Unexpected Behavior]
Immediately after the upgrade, many table update operations were pushed to Kafka through CDC as delete + insert in the incremental logs. Not all records exhibit this phenomenon. For some records that do, directly updating them using SQL statements does not reproduce the issue.
[Expected Behavior]
Normal update operations should appear as a single update in the CDC incremental logs.
[Related Components and Specific Versions]
Just upgraded to v7.1.3
[Other Background Information or Screenshots]
None