-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
The timeout is too short for fetching data of INFORMATION_SCHEMA.TIFLASH_TABLES
#57816
Comments
/label affects-8.5 |
/label affects-8.1 |
/label affects-7.5 |
/label affects-7.1 |
/label affects-6.5 |
INFORMATION_SCHEMA.TIFLASH_TABLES
Under non-disaggregated arch, when there are about 4900 table with tiflash replicas on 1 tiflash instance, it takes about 0.26 second to query the > select count(*) from information_schema.tiflash_tables;
+----------+
| count(*) |
+----------+
| 9 |
+----------+
1 row in set
Time: 0.012s
> select count(*) from information_schema.tiflash_tables;
+----------+
| count(*) |
+----------+
| 4969 |
+----------+
1 row in set
Time: 0.261s Under TiFlash Disaggregated Storage and Compute Architecture, it could take more time to get the info from |
/label severity/moderate |
@JaySon-Huang: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
/severity moderate |
/report community |
/remove-label affects-6.5 |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
An issue reported in the asktug (https://asktug.com/t/topic/1036157/1)
2. What did you expect to see? (Required)
3. What did you see instead (Required)
The timeout is only 1 second for fetching the system table from tiflash instance. When there are thousand of table with tiflash replica, the query easily run into timeout.
https://github.com/pingcap/tidb/blob/v7.5.4/pkg/executor/infoschema_reader.go#L3081-L3083
Timeout is 1 second since #42720
There are about 5000 tables/partition in the cluster.
4. What is your TiDB version? (Required)
v7.5.4
The text was updated successfully, but these errors were encountered: