tiflow icon indicating copy to clipboard operation
tiflow copied to clipboard

Auto resume is not aware of lightning error

Open lance6716 opened this issue 3 years ago • 1 comments

What did you do?

[2022/09/14 13:52:30.231 +08:00] [ERROR] [lightning.go:320] ["process error"] [task=ailearn-test] [unit=lightning-load] [error="[Lightning:Restore:ErrSchemaNotExists]table `ailearn_test`.`intell_third_poll_data` schema not found"] [errorVerbose="[Lightning:Restore:ErrSchemaNotExists]table `ailearn_test`.`intell_third_poll_data` schema not found\ngithub.com/pingcap/errors.AddStack\n\tgithub.com/pingcap/[email protected]/errors.go:174\ngithub.com/pingcap/errors.(*Error).GenWithStackByArgs\n\tgithub.com/pingcap/[email protected]/normalize.go:164\ngithub.com/pingcap/tidb/br/pkg/lightning/restore.LoadSchemaInfo\n\tgithub.com/pingcap/[email protected]/br/pkg/lightning/restore/tidb.go:256\ngithub.com/pingcap/tidb/br/pkg/lightning/restore.(*Controller).restoreSchema\n\tgithub.com/pingcap/[email protected]/br/pkg/lightning/restore/restore.go:721\ngithub.com/pingcap/tidb/br/pkg/lightning/restore.(*Controller).Run\n\tgithub.com/pingcap/[email protected]/br/pkg/lightning/restore/restore.go:419\ngithub.com/pingcap/tidb/br/pkg/lightning.(*Lightning).run\n\tgithub.com/pingcap/[email protected]/br/pkg/lightning/lightning.go:464\ngithub.com/pingcap/tidb/br/pkg/lightning.(*Lightning).RunOnceWithOptions\n\tgithub.com/pingcap/[email protected]/br/pkg/lightning/lightning.go:320\ngithub.com/pingcap/tiflow/dm/loader.(*LightningLoader).runLightning\n\tgithub.com/pingcap/tiflow/dm/loader/lightning.go:210\ngithub.com/pingcap/tiflow/dm/loader.(*LightningLoader).restore\n\tgithub.com/pingcap/tiflow/dm/loader/lightning.go:269\ngithub.com/pingcap/tiflow/dm/loader.(*LightningLoader).Process\n\tgithub.com/pingcap/tiflow/dm/loader/lightning.go:319\nruntime.goexit\n\truntime/asm_amd64.s:1571"]
...
[2022/09/14 13:52:34.102 +08:00] [INFO] [source_worker.go:653] ["auto_resume subtask"] [component="worker controller"] [task=ailearn-test]

What did you expect to see?

No response

What did you see instead?

No response

Versions of the cluster

DM version (run dmctl -V or dm-worker -V or dm-master -V):

(paste DM version here, and you must ensure versions of dmctl, DM-worker and DM-master are same)

Upstream MySQL/MariaDB server version:

(paste upstream MySQL/MariaDB server version here)

Downstream TiDB cluster version (execute SELECT tidb_version(); in a MySQL client):

(paste TiDB cluster version here)

How did you deploy DM: tiup or manually?

(leave TiUP or manually here)

Other interesting information (system version, hardware config, etc):

>
>

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

(paste current status of DM cluster here)

lance6716 avatar Sep 14 '22 11:09 lance6716

also related to DM in engine

lance6716 avatar Sep 14 '22 11:09 lance6716