-
Notifications
You must be signed in to change notification settings - Fork 6.1k
test: stabilize TestKillAutoAnalyzeIndex by cleanup corrupted job explicitly
#65519
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
base: master
Are you sure you want to change the base?
Conversation
|
Hi @tangenta. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. DetailsInstructions 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. |
|
[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. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #65519 +/- ##
================================================
- Coverage 77.8448% 77.6504% -0.1945%
================================================
Files 1971 1895 -76
Lines 540836 528530 -12306
================================================
- Hits 421013 410406 -10607
+ Misses 118164 118118 -46
+ Partials 1659 6 -1653
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
0xPoe
left a comment
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.
Maybe we should consider fixing the test itself. This case should be covered by: CleanupCorruptedAnalyzeJobsOnCurrentInstance.
TestKillAutoAnalyzeIndex by cleanup corrupted job explicitly
What problem does this PR solve?
Issue Number: close #62993
Problem Summary:
Fixed the flake by ensuring aborted/killed ANALYZE always finalizes its rows in
mysql.analyze_jobs(previously it could exit early and leave jobs stuck in running, which breaksTestKillAutoAnalyzeIndex).What changed and how does it work?
Fixed
TestKillAutoAnalyzeIndexflakiness by finalizing killed jobs viaCleanupCorruptedAnalyzeJobsOnCurrentInstance(forcingmysql.analyze_jobs.update_timeold enough to be eligible), and asserting the job ends up failed without relying on immediate in-executor finalization.Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.