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 optimistic fail sync data when restart master or worker frequently #5489

Closed
Tracked by #2246
WizardXiao opened this issue May 20, 2022 · 0 comments · Fixed by #5507
Closed
Tracked by #2246

DM optimistic fail sync data when restart master or worker frequently #5489

WizardXiao opened this issue May 20, 2022 · 0 comments · Fixed by #5507
Labels
affects-6.1 This bug affects the 6.1.x(LTS) versions. area/dm Issues or PRs related to DM. component/test Unit tests and integration tests component. type/enhancement The issue or PR belongs to an enhancement.

Comments

@WizardXiao
Copy link
Contributor

Which jobs are flaking?

https://ci2.pingcap.net/blue/organizations/jenkins/dm_ghpr_integration_test/detail/dm_ghpr_integration_test/5855/pipeline/

Which test(s) are flaking?

IT shardddl4_1/DM-155 optimistic

Jenkins logs or GitHub Actions link

[2022-05-18T09:28:55.766Z] [2022/05/18 17:28:23.346 +08:00] [DEBUG] [source_worker.go:197] ["runtime status"] [component="worker controller"] [status="{\n    \"status\": [\n        {\n            \"name\": \"test\",\n            \"stage\": \"Paused\",\n            \"unit\": \"Sync\",\n            \"result\": {\n                \"isCanceled\": false,\n                \"errors\": [\n                    {\n                        \"ErrCode\": 36027,\n                        \"ErrClass\": \"sync-unit\",\n                        \"ErrScope\": \"internal\",\n                        \"ErrLevel\": \"high\",\n                        \"Message\": \"startLocation: [position: (dm-integration-test-go1180-5855-lxrlz-pqmwr-bin|000001.000001, 175923), gtid-set: ce5c8dfc-d68b-11ec-b933-d289d6da190a:1-716], endLocation: [position: (dm-integration-test-go1180-5855-lxrlz-pqmwr-bin|000001.000001, 175979), gtid-set: ce5c8dfc-d68b-11ec-b933-d289d6da190a:1-716]: gen insert sqls failed, sourceTable: `shardddl1`.`tb1`, targetTable: `shardddl`.`tb`: Column count doesn't match value count: 4 (columns) vs 5 (values)\",\n                        \"RawCause\": \"\",\n                        \"Workaround\": \"Please check the log files to see if a related DDL has been skipped, and you could use `operate-schema` to get and set the table structure.\"\n                    }\n                ],\n                \"detail\": null\n            },\n            \"unresolvedDDLLockID\": \"\",\n            \"sync\": {\n                \"totalEvents\": \"22\",\n                \"totalTps\": \"0\",\n                \"recentTps\": \"0\",\n                \"masterBinlog\": \"(dm-integration-test-go1180-5855-lxrlz-pqmwr-bin.000001, 186753)\",\n                \"masterBinlogGtid\": \"ce5c8dfc-d68b-11ec-b933-d289d6da190a:1-753\",\n                \"syncerBinlog\": \"(dm-integration-test-go1180-5855-lxrlz-pqmwr-bin|000001.000001, 173995)\",\n                \"syncerBinlogGtid\": \"ce5c8dfc-d68b-11ec-b933-d289d6da190a:1-708\",\n                \"blockingDDLs\": [\n                ],\n                \"unresolvedGroups\": [\n                ],\n                \"synced\": false,\n                \"binlogType\": \"local\",\n                \"secondsBehindMaster\": \"0\",\n                \"blockDDLOwner\": \"\",\n                \"conflictMsg\": \"\"\n            }\n        }\n    ]\n}"]

Anything else we need to know

it need to wait sync ddl finish like https://github.com/pingcap/tiflow/blob/master/dm/tests/shardddl_optimistic/run.sh#L176

@WizardXiao WizardXiao added component/test Unit tests and integration tests component. type/enhancement The issue or PR belongs to an enhancement. area/dm Issues or PRs related to DM. labels May 20, 2022
@VelocityLight VelocityLight added the affects-6.1 This bug affects the 6.1.x(LTS) versions. label Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-6.1 This bug affects the 6.1.x(LTS) versions. area/dm Issues or PRs related to DM. component/test Unit tests and integration tests component. type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants