From 18629ef508ab9cd1494de23667da4028b48cbcff Mon Sep 17 00:00:00 2001 From: RobertCheng-956 <782307550@qq.com> Date: Thu, 11 Jan 2024 01:04:28 +0800 Subject: [PATCH 1/4] translate-docs-cn-pr#14383 translate-docs-cn-pr#14383 --- faq/backup-and-restore-faq.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/faq/backup-and-restore-faq.md b/faq/backup-and-restore-faq.md index f7e63949864da..7f53834b74445 100644 --- a/faq/backup-and-restore-faq.md +++ b/faq/backup-and-restore-faq.md @@ -295,6 +295,10 @@ Note that even if you configures [table filter](/table-filter.md#syntax), **BR d - System variable tables (`mysql.tidb`, `mysql.global_variables`) - [Other system tables](https://github.com/pingcap/tidb/blob/master/br/pkg/restore/systable_restore.go#L31) +### How to deal with the error of `cannot find rewrite rule` at restoration? + +Please examine whether there are tables in the recovery cluster sharing the same name as other tables in the backup data but having inconsistent structures. This issue often arises due to missing indexes in the tables of the recovery cluster. A recommended approach is to delete such tables in the recovery cluster first and then proceed with the restoration. + ## Other things you may want to know about backup and restore ### What is the size of the backup data? Are there replicas of the backup? From 8c8e52254dbf8cb1eba1dd8c7cfe277e93928f1d Mon Sep 17 00:00:00 2001 From: RobertCheng-956 <782307550@qq.com> Date: Thu, 11 Jan 2024 01:05:21 +0800 Subject: [PATCH 2/4] Update backup-and-restore-faq.md --- faq/backup-and-restore-faq.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/faq/backup-and-restore-faq.md b/faq/backup-and-restore-faq.md index 7f53834b74445..fc74ae0d516f1 100644 --- a/faq/backup-and-restore-faq.md +++ b/faq/backup-and-restore-faq.md @@ -295,7 +295,7 @@ Note that even if you configures [table filter](/table-filter.md#syntax), **BR d - System variable tables (`mysql.tidb`, `mysql.global_variables`) - [Other system tables](https://github.com/pingcap/tidb/blob/master/br/pkg/restore/systable_restore.go#L31) -### How to deal with the error of `cannot find rewrite rule` at restoration? +### How to deal with the error of `cannot find rewrite rule` when at restoration? Please examine whether there are tables in the recovery cluster sharing the same name as other tables in the backup data but having inconsistent structures. This issue often arises due to missing indexes in the tables of the recovery cluster. A recommended approach is to delete such tables in the recovery cluster first and then proceed with the restoration. From 720407e11b2241542f4df98ed4681e4bf605cbeb Mon Sep 17 00:00:00 2001 From: Cheng Rui <44940678+RobertCheng-956@users.noreply.github.com> Date: Fri, 12 Jan 2024 15:11:47 +0800 Subject: [PATCH 3/4] Update faq/backup-and-restore-faq.md Co-authored-by: Ran --- faq/backup-and-restore-faq.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/faq/backup-and-restore-faq.md b/faq/backup-and-restore-faq.md index fc74ae0d516f1..8d00f771d0b7a 100644 --- a/faq/backup-and-restore-faq.md +++ b/faq/backup-and-restore-faq.md @@ -297,7 +297,7 @@ Note that even if you configures [table filter](/table-filter.md#syntax), **BR d ### How to deal with the error of `cannot find rewrite rule` when at restoration? -Please examine whether there are tables in the recovery cluster sharing the same name as other tables in the backup data but having inconsistent structures. This issue often arises due to missing indexes in the tables of the recovery cluster. A recommended approach is to delete such tables in the recovery cluster first and then proceed with the restoration. +Examine whether there are tables in the restoration cluster sharing the same name as other tables in the backup data but having inconsistent structures. In most cases, this issue is caused by missing indexes in the tables of the restoration cluster. A recommended approach is to delete such tables in the restoration cluster first and then retry restoration. ## Other things you may want to know about backup and restore From 5e0ac75fa115e9bec3112c0ef6b03eaff4dcfd75 Mon Sep 17 00:00:00 2001 From: Cheng Rui <44940678+RobertCheng-956@users.noreply.github.com> Date: Fri, 12 Jan 2024 15:11:57 +0800 Subject: [PATCH 4/4] Update faq/backup-and-restore-faq.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Daniƫl van Eeden --- faq/backup-and-restore-faq.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/faq/backup-and-restore-faq.md b/faq/backup-and-restore-faq.md index 8d00f771d0b7a..e7f705f35026a 100644 --- a/faq/backup-and-restore-faq.md +++ b/faq/backup-and-restore-faq.md @@ -295,7 +295,7 @@ Note that even if you configures [table filter](/table-filter.md#syntax), **BR d - System variable tables (`mysql.tidb`, `mysql.global_variables`) - [Other system tables](https://github.com/pingcap/tidb/blob/master/br/pkg/restore/systable_restore.go#L31) -### How to deal with the error of `cannot find rewrite rule` when at restoration? +### How to deal with the error of `cannot find rewrite rule` during restoration? Examine whether there are tables in the restoration cluster sharing the same name as other tables in the backup data but having inconsistent structures. In most cases, this issue is caused by missing indexes in the tables of the restoration cluster. A recommended approach is to delete such tables in the restoration cluster first and then retry restoration.