pingcap / pingcap/tidb

DM lost TRUNCATE TABLE for sync mysql to tidb

Open
#55,650 1 comment 0 reactions 0 assignees View on GitHub
duplicate type/new-feature
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

When synchronizing mysql to tidb using DM 8.1, I noticed that the "truncate table" statements executed in mysql were not executed in tidb.
When I execute the "truncte table xx" statement in upstream mysql, the data in tidb still exists, which causes me to get a Duplicate entry '1' for xx exception when I insert data into the table later

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.