-
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
Stats GC: Unexpected behavior that an existing table with one record in stats_meta doesn't find its memory obj in memory cache #57956
Comments
In the testing env, this phenomenon also occurs when there's no foreground workload. |
In this pull request https://github.com/pingcap/tidb/pull/52347/files#diff-3e2f686997ae61d9cca386e3d4430ada2d09002649faa0714340f0a9cd0dcf37R96 . |
Similar to the issue #57901. |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
No clear reproduce step, it's found in super big cluster testing with 1 million tables.
#57844
From the debugging image, you can see that
The log said that the table is not found in the memory cache. But we can read its table meta from infoschema and can read its stats meta from the physical table
mysql.stats_meta
.And our stats initialization also reads all the things from
mysql.stats_meta
into memory.So this
could not find
is very strange and should be treated as a bug.2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
current master
The text was updated successfully, but these errors were encountered: