TiCDC meet error: Duplicate entry xxx for key xxx #10918
Labels
affects-6.5
This bug affects the 6.5.x(LTS) versions.
affects-7.1
This bug affects the 7.1.x(LTS) versions.
affects-7.5
This bug affects the 7.5.x(LTS) versions.
affects-8.1
This bug affects the 8.1.x(LTS) versions.
area/ticdc
Issues or PRs related to TiCDC.
severity/major
type/bug
The issue is confirmed as a bug.
What did you do?
If the upstream cluster runs a transaction with multiple updates to the pk/uk like the following:
This transaction may be split into two transactions inside ticdc:
txn1
txn2
And these two transactions have no order between them, so they may be executed in any order.
If txn2 executes first, it will meet error like
Duplicate entry xxx for key xxx
;What did you expect to see?
The transaction can be successfully synced to downstream without error
What did you see instead?
ticdc report error:
Duplicate entry xxx for key xxx
Versions of the cluster
Upstream TiDB cluster version (execute
SELECT tidb_version();
in a MySQL client):(paste TiDB cluster version here)
Upstream TiKV version (execute
tikv-server --version
):(paste TiKV version here)
TiCDC version (execute
cdc version
):(paste TiCDC version here)
The text was updated successfully, but these errors were encountered: