-
Notifications
You must be signed in to change notification settings - Fork 6.2k
BR: restore panic when backup has duplicate database and table name. #40797
Copy link
Copy link
Closed
Labels
affects-5.4This bug affects the 5.4.x(LTS) versions.This bug affects the 5.4.x(LTS) versions.affects-6.0affects-6.1This bug affects the 6.1.x(LTS) versions.This bug affects the 6.1.x(LTS) versions.affects-6.2affects-6.3affects-6.4affects-6.5This bug affects the 6.5.x(LTS) versions.This bug affects the 6.5.x(LTS) versions.component/brThis issue is related to BR of TiDB.This issue is related to BR of TiDB.severity/majortype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.
Metadata
Metadata
Assignees
Labels
affects-5.4This bug affects the 5.4.x(LTS) versions.This bug affects the 5.4.x(LTS) versions.affects-6.0affects-6.1This bug affects the 6.1.x(LTS) versions.This bug affects the 6.1.x(LTS) versions.affects-6.2affects-6.3affects-6.4affects-6.5This bug affects the 6.5.x(LTS) versions.This bug affects the 6.5.x(LTS) versions.component/brThis issue is related to BR of TiDB.This issue is related to BR of TiDB.severity/majortype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
Normally we wouldn't have a duplicate table names in same cluster. but for system tables. we use temporary database
__TiDB_BR_Temporary_mysqlto store system tables. This may cause the problem.1. Minimal reproduce step (Required)
tiup playgroundcreate database __TiDB_BR_Temporary_mysqlandcreate table tables_priv(id int)(anyone is as same asmysqldatabase.)br backup full --pd xxx -s 'local://tmp/bk01'br restore full --pd xxx -s 'local://tmp/bk01'2. What did you expect to see? (Required)
restore success
3. What did you see instead (Required)
panic due to we restore tables_priv twice.
4. What is your TiDB version? (Required)
v6.5.0