-
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
domain: do not start Auto Analyze Worker until statistics initialization is complete #52407
domain: do not start Auto Analyze Worker until statistics initialization is complete #52407
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #52407 +/- ##
================================================
+ Coverage 72.2252% 74.4406% +2.2154%
================================================
Files 1467 1470 +3
Lines 426895 434988 +8093
================================================
+ Hits 308326 323808 +15482
+ Misses 99450 91208 -8242
- Partials 19119 19972 +853
Flags with carried forward coverage won't be shown. Click here to find out more.
|
/retest |
[LGTM Timeline notifier]Timeline:
|
/hold We need to test it. |
0367070
to
1d7e1e8
Compare
@hi-rustin: The following test 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. |
The http service seems to be alive after the auto analyze. |
/unhold |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: AilinKid, hawkingrei, zimulala 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 |
/cherrypick release-8.1 |
Signed-off-by: ti-chi-bot <[email protected]>
@hawkingrei: new pull request created to branch In 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. |
@hawkingrei: new pull request created to branch In 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. |
…ion is complete (pingcap#52407) close pingcap#52346
What problem does this PR solve?
Issue Number: close #52346
Problem Summary:
We shouldn't start the auto-analyze worker before we complete the stats initialization. Otherwise, we might have started the auto-analysis before the initialization of the stats was complete without force init turned on. This could waste a lot of resources.
What changed and how does it work?
Wait for the initialization to be finished.
It is important to wait for it in a separate goroutine to avoid blocking the entire bootstrap process.
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.