importinto: update stats using UpdateStatsMeta#63269
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #63269 +/- ##
================================================
+ Coverage 72.7782% 73.2432% +0.4650%
================================================
Files 1832 1832
Lines 495769 495883 +114
================================================
+ Hits 360812 363201 +2389
+ Misses 113016 110833 -2183
+ Partials 21941 21849 -92
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
/retest |
|
@D3Hunter: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn 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 kubernetes-sigs/prow repository. |
|
/cherry-pick release-nextgen-20250815 |
|
@D3Hunter: once the present PR merges, I will cherry-pick it on top of release-nextgen-20250815 in the new PR and assign it to you. DetailsIn 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. |
| testfailpoint.Enable(s.T(), "github.com/pingcap/tidb/pkg/domain/deltaUpdateDuration", `return`) | ||
| testfailpoint.Enable(s.T(), "github.com/pingcap/tidb/pkg/util/cpu/mockNumCpu", "return(16)") | ||
| bak := vardef.GetStatsLease() |
There was a problem hiding this comment.
Maybe we can remove L67 now, previously I used failpoint to reduce stat update interval... But it's ok to keep it.
There was a problem hiding this comment.
let's keep it, there is a random duration added there, at most 1minute
Lines 2229 to 2234 in 98bbd14
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: GMHDBJD, joechenrh The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest |
|
@D3Hunter: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn 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 kubernetes-sigs/prow repository. |
|
@D3Hunter: new pull request created to branch DetailsIn 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. |
What problem does this PR solve?
Issue Number: ref #61702
Problem Summary:
What changed and how does it work?
previously, we update the stats inside the
sessionVars, and depends on thedeltaUpdateTickerWorkerto update them at regular interval, but in nextgen wen don't have such worker for user ks since we are inside SYSTEM ks, so change to update stats using UpdateStatsMeta.Check List
Tests
before the pr, the
stats_metais not updatedafter the pr
after a while, see table id 10
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.