Skip to content
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

*: kill auto analyze out of the auto analyze time windows #55062

Conversation

hawkingrei
Copy link
Member

@hawkingrei hawkingrei commented Jul 30, 2024

What problem does this PR solve?

Issue Number: close #55283

Problem Summary:

What changed and how does it work?

TiDB forget to kill the anto analyze which is out of the time windows

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No need to test
    • I checked and no code files have been changed.

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Changes MySQL compatibility

Release note

Please refer to Release Notes Language Style Guide to write a quality release note.

None

@ti-chi-bot ti-chi-bot bot added release-note-none Denotes a PR that doesn't merit a release note. do-not-merge/needs-linked-issue do-not-merge/needs-tests-checked sig/planner SIG: Planner size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed do-not-merge/needs-tests-checked labels Jul 30, 2024
Copy link

codecov bot commented Jul 30, 2024

Codecov Report

Attention: Patch coverage is 59.45946% with 15 lines in your changes missing coverage. Please review.

Project coverage is 75.8495%. Comparing base (0a2d5be) to head (578e779).
Report is 213 commits behind head on master.

Additional details and impacted files
@@               Coverage Diff                @@
##             master     #55062        +/-   ##
================================================
+ Coverage   74.8131%   75.8495%   +1.0363%     
================================================
  Files          1570       1570                
  Lines        364718     442459     +77741     
================================================
+ Hits         272857     335603     +62746     
- Misses        72124      86326     +14202     
- Partials      19737      20530       +793     
Flag Coverage Δ
integration 51.1437% <0.0000%> (?)
unit 72.1869% <59.4594%> (-1.5620%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
dumpling 52.9567% <ø> (-2.2327%) ⬇️
parser ∅ <ø> (∅)
br 63.0178% <ø> (+15.3271%) ⬆️

@hawkingrei hawkingrei force-pushed the kill_running_analyze_out_auto_analyze_windows branch from 24829b5 to 0f28403 Compare August 7, 2024 03:15
@ti-chi-bot ti-chi-bot bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. do-not-merge/needs-linked-issue labels Aug 7, 2024
@hawkingrei
Copy link
Member Author

/retest

@hawkingrei hawkingrei changed the title *: kill auto analyze out the auto analyze windows *: kill auto analyze out of the auto analyze time windows Aug 8, 2024
@hawkingrei hawkingrei requested a review from winoros August 8, 2024 03:38
@@ -72,7 +72,8 @@ func AutoAnalyze(
}
}

func execAnalyzeStmt(
// RunAnalyzeStmt executes the analyze statement.
func RunAnalyzeStmt(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Be public for test and exec.ExecXXXX is not acceptable for linter.

@hawkingrei hawkingrei force-pushed the kill_running_analyze_out_auto_analyze_windows branch 2 times, most recently from b00a564 to 933eb32 Compare August 8, 2024 06:16
@ti-chi-bot ti-chi-bot bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Aug 8, 2024
@hawkingrei hawkingrei force-pushed the kill_running_analyze_out_auto_analyze_windows branch from 933eb32 to 2fa9885 Compare August 8, 2024 06:16
@ti-chi-bot ti-chi-bot bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Aug 8, 2024
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
@hawkingrei hawkingrei force-pushed the kill_running_analyze_out_auto_analyze_windows branch from 2fa9885 to 578e779 Compare August 8, 2024 06:17
@hawkingrei
Copy link
Member Author

/retest

@ti-chi-bot ti-chi-bot bot added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Aug 8, 2024
@ti-chi-bot ti-chi-bot bot added lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Aug 9, 2024
Copy link

ti-chi-bot bot commented Aug 9, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-08-08 08:09:24.363002837 +0000 UTC m=+512294.230101910: ☑️ agreed by qw4990.
  • 2024-08-09 04:03:06.818842428 +0000 UTC m=+583916.685941513: ☑️ agreed by winoros.

Copy link

ti-chi-bot bot commented Aug 9, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lance6716, qw4990, winoros

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot added the approved label Aug 9, 2024
@ti-chi-bot ti-chi-bot bot merged commit b066365 into pingcap:master Aug 9, 2024
24 checks passed
@ti-chi-bot ti-chi-bot added the needs-cherry-pick-release-8.1 Should cherry pick this PR to release-8.1 branch. label Aug 20, 2024
@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created to branch release-8.1: #55522.

ti-chi-bot pushed a commit to ti-chi-bot/tidb that referenced this pull request Aug 20, 2024
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
@ti-chi-bot ti-chi-bot added needs-cherry-pick-release-7.5 Should cherry pick this PR to release-7.5 branch. and removed needs-cherry-pick-release-7.5 Should cherry pick this PR to release-7.5 branch. labels Aug 20, 2024
ti-chi-bot pushed a commit to ti-chi-bot/tidb that referenced this pull request Aug 20, 2024
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created to branch release-7.5: #55524.

@ti-chi-bot ti-chi-bot bot added the needs-cherry-pick-release-6.5 Should cherry pick this PR to release-6.5 branch. label Sep 6, 2024
ti-chi-bot pushed a commit to ti-chi-bot/tidb that referenced this pull request Sep 6, 2024
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created to branch release-6.5: #55914.

@ti-chi-bot ti-chi-bot bot removed the needs-cherry-pick-release-6.5 Should cherry pick this PR to release-6.5 branch. label Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm needs-cherry-pick-release-8.1 Should cherry pick this PR to release-8.1 branch. release-note-none Denotes a PR that doesn't merit a release note. sig/planner SIG: Planner size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cannot kill auto-analyze which is out the analyze time window
5 participants