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

upgrade from v7.5 to master, @@tidb_schema_cache_size incorrect #56544

Closed
tiancaiamao opened this issue Oct 10, 2024 · 0 comments · Fixed by #56545
Closed

upgrade from v7.5 to master, @@tidb_schema_cache_size incorrect #56544

tiancaiamao opened this issue Oct 10, 2024 · 0 comments · Fixed by #56545
Assignees
Labels
affects-8.4 needs-cherry-pick-release-8.4 Should cherry pick this PR to release-8.4 branch. severity/moderate sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@tiancaiamao
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

Start a old version tidb cluster:

tiup playground v7.6.0 --tiflash 0

kill the tidb-server and restart a master tidb-server

2. What did you expect to see? (Required)

mysql> select @@global.tidb_schema_cache_size;
+---------------------------------+
| @@global.tidb_schema_cache_size |
+---------------------------------+
| 536870912                      |
+---------------------------------+
1 row in set (0.00 sec)

mysql> select * from GLOBAL_VARIABLES where variable_name = 'tidb_schema_cache_size';
Empty set (0.01 sec)

This means the global variable @@tidb_schema_cache_size does not exist in tikv.
So the default value 536870912 is used.

Then upgrade an old tidb cluster from v7.5 to master, it will use infoschema v2.

3. What did you see instead (Required)

4. What is your TiDB version? (Required)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-8.4 needs-cherry-pick-release-8.4 Should cherry pick this PR to release-8.4 branch. severity/moderate sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants