lightning panic when table name in source file and target cluster is different #31771
Labels
affects-5.2
This bug affects 5.2.x versions.
affects-5.3
This bug affects 5.3.x versions.
component/lightning
This issue is related to Lightning of TiDB.
severity/major
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
provide following source file:
manually create target table in target cluster:
run tidb-lightning with this source file.
The root cause is:
tidb/br/pkg/lightning/restore/tidb.go
Lines 257 to 279 in ab30467
We should also check if other logic has similar issue.
The tableName should use
tbl.Name
instead oftblInfo.Name.O
as they may be different if target table is manually create and is different from tbl.Name.2. What did you expect to see? (Required)
tidb-lightning should import successfully since tidb is case-insensitive
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
v5.3.0
The text was updated successfully, but these errors were encountered: