Closed Tammyxia closed 2 years ago
There are two possible reasons for the issue:
There is a bug in the transaction conflict detection part of mysql sink, which causes different workers to execute conflicting transactions concurrently. However, considering that this part of code has not been modified recently and the error has not reappeared in recent tests, it is probably not the root cause of the problem.
There is a bug in the scheduler module during scale-in or scale-out, which causes different captures to write the same downstream at the same time. Considering that the scheduler code has been deprecated in 5.0, and it is not clear whether the new version of the scheduler module has this problem. Therefore, we temporarily close this issue.
Feel free to reopen it if this issue happens again.
An oncall of ticdc v6.1.0 has encountered this problem.
[2022/09/23 07:28:36.822 +00:00] [WARN] [mysql.go:612] ["execute DMLs with error, retry later"] [error="
[CDC:ErrMySQLTxnError]MySQL txn error: Error 9007: Write conflict, txnStartTS=436186150766379010, conflictStartTS=436186150727057454, conflictCommitTS=436186150766379021,
key={tableID=172, indexID=4, indexValues={1, 85709, 15, 13, }} primary={tableID=161, indexID=1, indexValues={346943, 1850395608943165440, 729430118, 1, 1598468504, }} [try again later]"]
Need more investigation. https://internal.pingcap.net/jira/browse/ONCALL-5443
/remove affects-6.1
Bug Report
Please answer these questions before submitting your issue. Thanks!
Versions of the cluster
Upstream TiDB cluster version (execute
SELECT tidb_version();
in a MySQL client):TiCDC version (execute
cdc version
):