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

br: wait till info schema loading finished before proceeding to the rest of the PiTR restore #57743

Closed
Tristan1900 opened this issue Nov 26, 2024 · 0 comments · Fixed by #57742
Labels
affects-6.5 This bug affects the 6.5.x(LTS) versions. affects-7.1 This bug affects the 7.1.x(LTS) versions. affects-7.5 This bug affects the 7.5.x(LTS) versions. affects-8.1 This bug affects the 8.1.x(LTS) versions. affects-8.5 This bug affects the 8.5.x(LTS) versions. component/br This issue is related to BR of TiDB. severity/minor type/bug The issue is confirmed as a bug.

Comments

@Tristan1900
Copy link
Contributor

Tristan1900 commented Nov 26, 2024

Bug Report

In a cluster with large number of tables but minimal actual data, during PiTR restore infoSchema can take minutes to load the restore change, and since actual data restore finished within seconds, restore process tries to use infoSchema for insertGCRow before its reloading finished, and it can cause problem of the below

[error="[domain:8027]Information schema is out of date: schema failed to update in 1 lease, please make sure TiDB can connect to TiKV"]
@Tristan1900 Tristan1900 added the type/bug The issue is confirmed as a bug. label Nov 26, 2024
@Tristan1900 Tristan1900 changed the title br: wait till info schema loading to finish before proceed to the rest of the PiTR restore br: wait till info schema loading finished before proceeding to the rest of the PiTR restore Nov 26, 2024
@ti-chi-bot ti-chi-bot bot added affects-8.5 This bug affects the 8.5.x(LTS) versions. affects-7.1 This bug affects the 7.1.x(LTS) versions. affects-7.5 This bug affects the 7.5.x(LTS) versions. affects-8.1 This bug affects the 8.1.x(LTS) versions. affects-6.5 This bug affects the 6.5.x(LTS) versions. labels Nov 27, 2024
@jebter jebter added the component/br This issue is related to BR of TiDB. label Nov 29, 2024
Tristan1900 added a commit to Tristan1900/tidb that referenced this issue Dec 12, 2024
Tristan1900 added a commit to Tristan1900/tidb that referenced this issue Dec 12, 2024
Tristan1900 added a commit to Tristan1900/tidb that referenced this issue Dec 12, 2024
Tristan1900 added a commit to Tristan1900/tidb that referenced this issue Dec 12, 2024
Tristan1900 added a commit to Tristan1900/tidb that referenced this issue Dec 12, 2024
Tristan1900 added a commit to Tristan1900/tidb that referenced this issue Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-6.5 This bug affects the 6.5.x(LTS) versions. affects-7.1 This bug affects the 7.1.x(LTS) versions. affects-7.5 This bug affects the 7.5.x(LTS) versions. affects-8.1 This bug affects the 8.1.x(LTS) versions. affects-8.5 This bug affects the 8.5.x(LTS) versions. component/br This issue is related to BR of TiDB. severity/minor type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants