Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM uses lightning "replace" deduplication mode and failed #52886

Closed
lance6716 opened this issue Apr 25, 2024 · 8 comments · Fixed by #52888
Closed

DM uses lightning "replace" deduplication mode and failed #52886

lance6716 opened this issue Apr 25, 2024 · 8 comments · Fixed by #52888
Labels
affects-7.5 affects-8.1 component/lightning This issue is related to Lightning of TiDB. severity/major type/bug The issue is confirmed as a bug.

Comments

@lance6716
Copy link
Contributor

lance6716 commented Apr 25, 2024

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

https://do.pingcap.net/jenkins/blue/organizations/jenkins/pingcap%2Ftiflow%2Frelease-7.5%2Fpull_dm_integration_test/detail/pull_dm_integration_test/249/pipeline/

github.com/pingcap/tidb v1.1.0-beta.0.20240410073751-e540f0fd00b5

2. What did you expect to see? (Required)

3. What did you see instead (Required)

...
[2024/04/25 16:36:05.603 +08:00] [DEBUG] [duplicate.go:1159] [getLatestValue] [task=test] [unit=lightning-load] [table=`lightning_mode`.`dup`] [key=74800000000000007E5F728000000000000001] [value="gAABAAAAAgEAYQ=="] []
[2024/04/25 16:36:05.603 +08:00] [DEBUG] [tables.go:1003] [addRecord] [key=74800000000000007e5f728000000000000001]
[2024/04/25 16:36:05.603 +08:00] [DEBUG] [errormanager.go:640] ["got group raw_key, raw_value from table"] [task=test] [unit=lightning-load] [raw_key=74800000000000007E5F728000000000000001] [raw_value="gAABAAAAAgIAYTI="]
[2024/04/25 16:36:05.603 +08:00] [DEBUG] [tables.go:1003] [addRecord] [key=74800000000000007e5f728000000000000001]
[2024/04/25 16:36:05.603 +08:00] [DEBUG] [errormanager.go:702] ["got encoded KV"] [task=test] [unit=lightning-load] [key=74800000000000007E5F728000000000000001] [value=CAQCBGEy]
[2024/04/25 16:36:05.604 +08:00] [DEBUG] [duplicate.go:1159] [getLatestValue] [task=test] [unit=lightning-load] [table=`lightning_mode`.`dup`] [key=74800000000000007E5F728000000000000001] [value="gAABAAAAAgEAYQ=="] []
[2024/04/25 16:36:05.604 +08:00] [DEBUG] [errormanager.go:640] ["got group raw_key, raw_value from table"] [task=test] [unit=lightning-load] [raw_key=74800000000000007E5F728000000000000002] [raw_value="gAABAAAAAgEAYg=="]
[2024/04/25 16:36:05.605 +08:00] [DEBUG] [duplicate.go:1159] [getLatestValue] [task=test] [unit=lightning-load] [table=`lightning_mode`.`dup`] [key=74800000000000007E5F728000000000000002] [value="gAABAAAAAgEAYg=="] []
[2024/04/25 16:36:05.605 +08:00] [DEBUG] [tables.go:1003] [addRecord] [key=74800000000000007e5f728000000000000002]
[2024/04/25 16:36:05.605 +08:00] [DEBUG] [errormanager.go:640] ["got group raw_key, raw_value from table"] [task=test] [unit=lightning-load] [raw_key=74800000000000007E5F728000000000000002] [raw_value="gAABAAAAAgIAYjI="]
[2024/04/25 16:36:05.605 +08:00] [DEBUG] [tables.go:1003] [addRecord] [key=74800000000000007e5f728000000000000002]
[2024/04/25 16:36:05.605 +08:00] [DEBUG] [errormanager.go:702] ["got encoded KV"] [task=test] [unit=lightning-load] [key=74800000000000007E5F728000000000000002] [value=CAQCBGIy]
[2024/04/25 16:36:05.606 +08:00] [DEBUG] [duplicate.go:1159] [getLatestValue] [task=test] [unit=lightning-load] [table=`lightning_mode`.`dup`] [key=74800000000000007E5F728000000000000002] [value="gAABAAAAAgEAYg=="] []
[2024/04/25 16:36:05.607 +08:00] [DEBUG] [errormanager.go:640] ["got group raw_key, raw_value from table"] [task=test] [unit=lightning-load] [raw_key=74800000000000007E5F728000000000000003] [raw_value="gAABAAAAAgEAYw=="]
[2024/04/25 16:36:05.607 +08:00] [DEBUG] [duplicate.go:1159] [getLatestValue] [task=test] [unit=lightning-load] [table=`lightning_mode`.`dup`] [key=74800000000000007E5F728000000000000003] [value="gAABAAAAAgEAYw=="] []
[2024/04/25 16:36:05.607 +08:00] [DEBUG] [tables.go:1003] [addRecord] [key=74800000000000007e5f728000000000000003]
[2024/04/25 16:36:05.607 +08:00] [DEBUG] [errormanager.go:640] ["got group raw_key, raw_value from table"] [task=test] [unit=lightning-load] [raw_key=74800000000000007E5F728000000000000003] [raw_value="gAABAAAAAgIAYzI="]
[2024/04/25 16:36:05.608 +08:00] [DEBUG] [tables.go:1003] [addRecord] [key=74800000000000007e5f728000000000000003]
[2024/04/25 16:36:05.608 +08:00] [DEBUG] [errormanager.go:702] ["got encoded KV"] [task=test] [unit=lightning-load] [key=74800000000000007E5F728000000000000003] [value=CAQCBGMy]
[2024/04/25 16:36:05.608 +08:00] [DEBUG] [duplicate.go:1159] [getLatestValue] [task=test] [unit=lightning-load] [table=`lightning_mode`.`dup`] [key=74800000000000007E5F728000000000000003] [value="gAABAAAAAgEAYw=="] []
[2024/04/25 16:36:05.609 +08:00] [WARN] [util.go:201] ["delete additionally inserted rows for conflict detection 'replace' mode failed with no retry"] [task=test] [unit=lightning-load] [retryCnt=0] [error="Error 1054 (42S22): Unknown column '' in 'where clause'"]
[2024/04/25 16:36:05.610 +08:00] [ERROR] [duplicate.go:1109] ["[resolve-dupe] resolve duplicate rows failed"] [task=test] [unit=lightning-load] [table=`lightning_mode`.`dup`] [takeTime=17.378303ms] [error="delete additionally inserted rows for conflict detection 'replace' mode failed: Error 1054 (42S22): Unknown column '' in 'where clause'"]

4. What is your TiDB version? (Required)

@lance6716 lance6716 added the type/bug The issue is confirmed as a bug. label Apr 25, 2024
@lance6716
Copy link
Contributor Author

deleteNullDataRow = `
DELETE FROM %s.` + ConflictErrorTableName + `
WHERE key_data = "" and row_data = "";
`

should use ' not " to represent string literal in SQL

@lyzx2001
Copy link
Contributor

/severity major

@lyzx2001
Copy link
Contributor

/label affects-8.1
/label affects-7.5

@lyzx2001
Copy link
Contributor

/remove-sig may-affects-5.4

Copy link

ti-chi-bot bot commented Apr 25, 2024

@lyzx2001: These labels are not set on the issue: sig/may-affects-5.4.

In response to this:

/remove-sig may-affects-5.4

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

@lyzx2001
Copy link
Contributor

/remove-label may-affects-5.4

@ti-chi-bot ti-chi-bot bot removed the may-affects-5.4 This bug maybe affects 5.4.x versions. label Apr 25, 2024
@lyzx2001
Copy link
Contributor

/remove-label may-affects-6.5
/remove-label may-affects-7.1

@lyzx2001
Copy link
Contributor

/remove-label may-affects-6.1

@jebter jebter added the component/lightning This issue is related to Lightning of TiDB. label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-7.5 affects-8.1 component/lightning This issue is related to Lightning of TiDB. severity/major type/bug The issue is confirmed as a bug.
Projects
None yet
3 participants