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

runaway: only check statements with a non-empty plan digest #57582

Merged
merged 3 commits into from
Nov 21, 2024

Conversation

nolouch
Copy link
Member

@nolouch nolouch commented Nov 21, 2024

What problem does this PR solve?

Issue Number: close #56897

Problem Summary:

What changed and how does it work?

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.

Release note

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

None

Signed-off-by: nolouch <nolouch@gmail.com>
@ti-chi-bot ti-chi-bot bot added release-note-none Denotes a PR that doesn't merit a release note. needs-cherry-pick-release-8.5 Should cherry pick this PR to release-8.5 branch. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 21, 2024
@nolouch nolouch requested review from JmPotato and glorv November 21, 2024 07:39
@@ -92,6 +92,10 @@ func (rm *Manager) DeriveChecker(resourceGroupName, originalSQL, sqlDigest, plan
logutil.BgLogger().Warn("cannot setup up runaway checker", zap.Error(err))
return nil
}
// Only check the normal statement.
if len(planDigest) == 0 {
Copy link
Member Author

Choose a reason for hiding this comment

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

the main change.

Signed-off-by: nolouch <nolouch@gmail.com>
@nolouch nolouch force-pushed the fix-empty-plan-digest branch from 82434d2 to 9aceb5c Compare November 21, 2024 08:01
@ti-chi-bot ti-chi-bot bot added approved needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Nov 21, 2024
Copy link

ti-chi-bot bot commented Nov 21, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: glorv, JmPotato

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 lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Nov 21, 2024
Copy link

ti-chi-bot bot commented Nov 21, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-11-21 08:07:33.566275505 +0000 UTC m=+105441.185930020: ☑️ agreed by glorv.
  • 2024-11-21 08:08:53.450112511 +0000 UTC m=+105521.069767024: ☑️ agreed by JmPotato.

Copy link

codecov bot commented Nov 21, 2024

Codecov Report

Attention: Patch coverage is 90.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 73.4067%. Comparing base (14e99ea) to head (e4d64b5).
Report is 150 commits behind head on master.

Additional details and impacted files
@@               Coverage Diff                @@
##             master     #57582        +/-   ##
================================================
+ Coverage   72.8115%   73.4067%   +0.5951%     
================================================
  Files          1676       1676                
  Lines        463414     468825      +5411     
================================================
+ Hits         337419     344149      +6730     
+ Misses       105180     103802      -1378     
- Partials      20815      20874        +59     
Flag Coverage Δ
integration 43.4516% <13.3333%> (?)
unit 72.2040% <90.0000%> (+0.0004%) ⬆️

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

Components Coverage Δ
dumpling 52.7673% <ø> (ø)
parser ∅ <ø> (∅)
br 45.2453% <ø> (-0.0106%) ⬇️

Signed-off-by: nolouch <nolouch@gmail.com>
@ti-chi-bot ti-chi-bot bot merged commit 9ef5b59 into pingcap:master Nov 21, 2024
24 checks passed
@ti-chi-bot
Copy link
Member

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

@nolouch nolouch deleted the fix-empty-plan-digest branch November 21, 2024 15:42
@ti-chi-bot ti-chi-bot bot added the needs-cherry-pick-release-8.1 Should cherry pick this PR to release-8.1 branch. label Dec 11, 2024
ti-chi-bot pushed a commit to ti-chi-bot/tidb that referenced this pull request Dec 11, 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-8.1: #58156.

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. needs-cherry-pick-release-8.5 Should cherry pick this PR to release-8.5 branch. release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

runaway query watch=plan may record empty plan, which cause failed connection
4 participants