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 may stuck at syncer initialization #6898

Open
lance6716 opened this issue Aug 26, 2022 · 2 comments
Open

DM may stuck at syncer initialization #6898

lance6716 opened this issue Aug 26, 2022 · 2 comments
Labels
affects-6.0 affects-6.1 affects-6.2 area/dm Issues or PRs related to DM. severity/moderate type/bug The issue is confirmed as a bug.

Comments

@lance6716
Copy link
Contributor

What did you do?

https://asktug.com/t/topic/903490/8?u=lance6716

goroutine 358 [select]:
github.com/pingcap/tidb/ddl.(*ddl).DoDDLJob(0xc0111c3780, {0x3974878?, 0xc011ec1200?}, 0xc0007d6d80)
	github.com/pingcap/tidb@v1.1.0-beta.0.20220528045048-5495dc6c4360/ddl/ddl.go:699 +0x752
github.com/pingcap/tidb/ddl.(*ddl).BatchCreateTableWithInfo(0x2bdda00?, {0x3974878, 0xc011ec1200}, {{0xc00057f980?, 0x1008ba698?}, {0xc00057f980?, 0x4?}}, {0xc012181800, 0x95, 0x100}, ...)
	github.com/pingcap/tidb@v1.1.0-beta.0.20220528045048-5495dc6c4360/ddl/ddl_api.go:2451 +0x706
github.com/pingcap/tiflow/dm/pkg/schema.(*Tracker).BatchCreateTableIfNotExist(0xc000f1c7e0, 0x3253c7d?)
	github.com/pingcap/tiflow/dm/pkg/schema/tracker.go:458 +0x21e
github.com/pingcap/tiflow/dm/syncer.(*RemoteCheckPoint).LoadIntoSchemaTracker(0xc0010da4e0, {0xc000dffe40?, 0xc00127f538?}, 0x5?)
	github.com/pingcap/tiflow/dm/syncer/checkpoint.go:1104 +0x1de
github.com/pingcap/tiflow/dm/syncer.(*Syncer).Run(0xc000475680, {0x391a0b8?, 0xc000dffe40?})
	github.com/pingcap/tiflow/dm/syncer/syncer.go:1703 +0xeb1
github.com/pingcap/tiflow/dm/syncer.(*Syncer).Process(0xc000475680, {0x391a0b8, 0xc000dffd80}, 0xc000175320?)
	github.com/pingcap/tiflow/dm/syncer/syncer.go:702 +0x392
created by github.com/pingcap/tiflow/dm/dm/worker.(*SubTask).run
	github.com/pingcap/tiflow/dm/dm/worker/subtask.go:260 +0x56c

What did you expect to see?

the internal call of BatchCreateTableWithInfo should not stuck

What did you see instead?

see above

Versions of the cluster

v6.1.0

current status of DM cluster (execute query-status <task-name> in dmctl)

(paste current status of DM cluster here)
@lance6716
Copy link
Contributor Author

this should be solved by #5334 in v6.3.0

@lance6716
Copy link
Contributor Author

lance6716 commented Aug 26, 2022

the user says it has 800 tables in one task, and the goroutine stack shows it is waiting at

https://github.com/pingcap/tidb/blob/b99aebee3110e539bec53bbd8838fa554ad4e653/ddl/ddl.go#L490-L495

800*0.1s = 80s

will check if we can step aside this check later

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-6.0 affects-6.1 affects-6.2 area/dm Issues or PRs related to DM. severity/moderate type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

2 participants