-
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
tidb_stats_load_sync_wait Parameter does not take effect #50872
Comments
Is sql hint
tidb/pkg/planner/core/plan_stats.go Line 112 in 9bad202
|
There maybe a bug, not very sure about yet: syncWait := plan.SCtx().GetSessionVars().StatsLoadSyncWait * time.Millisecond.Nanoseconds() infact and However Compare Not sure if #50915 can close it. |
@hawkingrei PTAL tidb/pkg/planner/core/plan_stats.go Line 41 in 9bad202
tidb/pkg/planner/core/plan_stats.go Line 112 in 9bad202
|
max_execution_time is 86400000 |
The |
tidb_stats_load_sync_wait is 30000 max_execution_time I do not know the logic or time unit of these two parameters, please analyze the problem in detail . |
/severity moderate |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
set global tidb_stats_load_sync_wait=30000;
2. What did you expect to see? (Required)
execute SQL need to wait 30 seconds
3. What did you see instead (Required)
SQL return result in 3 seconds, and report a warning : sync load stats timeout
4. What is your TiDB version? (Required)
MySQL [lifedata]> select tidb_version();
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| tidb_version() |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Release Version: v7.5.0
Edition: Community
Git Commit Hash: 069631e
Git Branch: heads/refs/tags/v7.5.0
UTC Build Time: 2023-11-24 08:50:14
GoVersion: go1.21.3
Race Enabled: false
Check Table Before Drop: false
Store: tikv |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.01 sec)
The text was updated successfully, but these errors were encountered: