-
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: Update stats meta count and modify count for dropped table partitions #48929
statistics: Update stats meta count and modify count for dropped table partitions #48929
Conversation
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
dropped table partitions Signed-off-by: hi-rustin <rustin.liu@gmail.com>
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #48929 +/- ##
================================================
+ Coverage 70.9584% 72.6126% +1.6541%
================================================
Files 1368 1390 +22
Lines 404999 415363 +10364
================================================
+ Hits 287381 301606 +14225
+ Misses 97587 94740 -2847
+ Partials 20031 19017 -1014
Flags with carried forward coverage won't be shown. Click here to find out more.
|
/retest |
count Signed-off-by: hi-rustin <rustin.liu@gmail.com>
UpdateStatsMetaDelta Signed-off-by: hi-rustin <rustin.liu@gmail.com>
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
/retest |
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
logutil.StatsLogger.Warn( | ||
"drop partition with pseudo stats, "+ | ||
"usually it won't happen because we always load stats when initializing the handle", | ||
zap.String("table", globalTableInfo.Name.O), | ||
zap.String("partition", def.Name.O), |
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.
I think db name should also be printed, but looks like it would take much extra work to implement that.
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.
We need to pass the info schema here. And it involves a lot of test changes. I will do it in a separate PR.
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.
See #49011
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.
Not big problems. I'm OK to merge it now.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: qw4990, time-and-fate The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
/hold |
Just /hold it in case it's merged accidentally by the bot. |
/test all |
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
/unhold |
What problem does this PR solve?
Issue Number: close #48182
Problem Summary:
What changed and how does it work?
Based on this design doc, we will only update the count and modfiy_count for it. Then it will use the count and modify_count to determine if we need to trigger an auto-analysis task.
So in this PR, I updated the count and modify count of the global table.
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.