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

tidb_schema_cache_size max support value is wrong #54034

Closed
lilinghai opened this issue Jun 14, 2024 · 0 comments · Fixed by #54035
Closed

tidb_schema_cache_size max support value is wrong #54034

lilinghai opened this issue Jun 14, 2024 · 0 comments · Fixed by #54035
Assignees
Labels
feature/developing the related feature is in development severity/moderate sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@lilinghai
Copy link
Contributor

lilinghai commented Jun 14, 2024

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

mysql> set @@global.tidb_schema_cache_size=10737418240;
Query OK, 0 rows affected, 1 warning (0.05 sec)

mysql> show warnings;
+---------+------+-----------------------------------------------------------------+
| Level   | Code | Message                                                         |
+---------+------+-----------------------------------------------------------------+
| Warning | 1292 | Truncated incorrect tidb_schema_cache_size value: '10737418240' |
+---------+------+-----------------------------------------------------------------+
1 row in set (0.07 sec)

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

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

The Range is [0, 9223372036854775807] based the dock https://docs.pingcap.com/tidb/dev/system-variables#tidb_schema_cache_size-new-in-v800

3. What did you see instead (Required)

4. What is your TiDB version? (Required)

Release Version: v8.2.0-alpha
Edition: Community
Git Commit Hash: 6cf8776
Git Branch: heads/refs/tags/v8.2.0-alpha
UTC Build Time: 2024-06-13 11:49:48
GoVersion: go1.21.10
Race Enabled: false
Check Table Before Drop: false
Store: tikv

@lilinghai lilinghai added type/bug The issue is confirmed as a bug. severity/moderate labels Jun 14, 2024
@lilinghai lilinghai self-assigned this Jun 14, 2024
@tiancaiamao tiancaiamao added the feature/developing the related feature is in development label Jun 14, 2024
@jebter jebter added the sig/sql-infra SIG: SQL Infra label Jun 18, 2024
@ti-chi-bot ti-chi-bot bot closed this as completed in 6b0db7f Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/developing the related feature is in development 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.

3 participants