-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
statistics: fix sync load fails after disabling lite init stats #54531
base: master
Are you sure you want to change the base?
statistics: fix sync load fails after disabling lite init stats #54531
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #54531 +/- ##
=================================================
- Coverage 74.7209% 50.1448% -24.5761%
=================================================
Files 1557 1673 +116
Lines 363550 601631 +238081
=================================================
+ Hits 271648 301687 +30039
- Misses 72247 276899 +204652
- Partials 19655 23045 +3390
Flags with carried forward coverage won't be shown. Click here to find out more.
|
7a80598
to
6f18b1f
Compare
/retest |
1 similar comment
/retest |
9923a4e
to
35a2237
Compare
dec0852
to
3fd13fd
Compare
4925b62
to
3fd13fd
Compare
84b0d15
to
9617a46
Compare
/retest |
714295c
to
ee73a33
Compare
/retest |
1 similar comment
/retest |
PR needs rebase. 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 kubernetes/test-infra repository. |
e5842da
to
a2db608
Compare
/retest |
e23d8e5
to
b69d810
Compare
/retest |
6e27269
to
d7478fb
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
if tbl.ColAndIdxExistenceMap.IsColEmpty() { | ||
for _, col := range tbleInfo.Meta().Columns { | ||
tbl.ColAndIdxExistenceMap.InsertCol(col.ID, col, colHist.StatsAvailable()) | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only update the column itself. Otherwise we need to read all column from mysql.stats_histograms
.
54da511
to
fdc34e1
Compare
1e4c7f0
to
33d9b24
Compare
@hawkingrei: The following tests failed, say
Full PR test history. Your PR dashboard. 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 kubernetes/test-infra repository. I understand the commands that are listed here. |
What problem does this PR solve?
Issue Number: close #54532
Problem Summary:
What changed and how does it work?
after #53399, we cannot load the common column's stats into the cache. so it also cannot init the infoschema in the stats structure. so it will lead the problem, which cannot sync load
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.