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

planner: disable non-prep plan cache by default #46504

Merged
merged 2 commits into from
Aug 30, 2023

Conversation

qw4990
Copy link
Contributor

@qw4990 qw4990 commented Aug 30, 2023

What problem does this PR solve?

Issue Number: close #36598

Problem Summary: planner: disable non-prep plan cache by default

What is changed and how it works?

Non-Prep plan cache causes some extra memory usage, to make the default behavior more stable, disable this feature by default and let users turn on this feature manually if they need.

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

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

@qw4990 qw4990 requested a review from a team as a code owner August 30, 2023 08:05
@ti-chi-bot ti-chi-bot bot added release-note-none Denotes a PR that doesn't merit a release note. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Aug 30, 2023
@tiprow
Copy link

tiprow bot commented Aug 30, 2023

Hi @qw4990. Thanks for your PR.

PRs from untrusted users cannot be marked as trusted with /ok-to-test in this repo meaning untrusted PR authors can never trigger tests themselves. Collaborators can still trigger tests on the PR using /test all.

I understand the commands that are listed here.

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.

@codecov
Copy link

codecov bot commented Aug 30, 2023

Codecov Report

Merging #46504 (ad13805) into master (f516603) will decrease coverage by 0.7191%.
Report is 6 commits behind head on master.
The diff coverage is n/a.

Additional details and impacted files
@@               Coverage Diff                @@
##             master     #46504        +/-   ##
================================================
- Coverage   73.3629%   72.6438%   -0.7191%     
================================================
  Files          1303       1330        +27     
  Lines        394540     400626      +6086     
================================================
+ Hits         289446     291030      +1584     
- Misses        86687      91123      +4436     
- Partials      18407      18473        +66     
Flag Coverage Δ
integration 25.3751% <ø> (?)
unit 73.3330% <ø> (-0.0299%) ⬇️

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

Components Coverage Δ
dumpling 54.0444% <ø> (ø)
parser 84.9880% <ø> (-0.0866%) ⬇️
br 48.0260% <ø> (-4.3268%) ⬇️

@ti-chi-bot
Copy link

ti-chi-bot bot commented Aug 30, 2023

@hawkingrei: adding LGTM is restricted to approvers and reviewers in OWNERS files.

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 kubernetes/test-infra repository.

@ti-chi-bot
Copy link

ti-chi-bot bot commented Aug 30, 2023

@AilinKid: adding LGTM is restricted to approvers and reviewers in OWNERS files.

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 kubernetes/test-infra repository.

@AilinKid AilinKid added the sig/planner SIG: Planner label Aug 30, 2023
@hawkingrei
Copy link
Member

@easonn7 PTAL

@easonn7
Copy link

easonn7 commented Aug 30, 2023

/approve

Non-prepared plan cache is turned off by default, primarily to enhance stability. The plan is to consider enabling non-prepared plan cache by default once it becomes stable in the future.

@ti-chi-bot ti-chi-bot bot added the approved label Aug 30, 2023
@ti-chi-bot
Copy link

ti-chi-bot bot commented Aug 30, 2023

@XuHuaiyu: adding LGTM is restricted to approvers and reviewers in OWNERS files.

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 kubernetes/test-infra repository.

@qw4990 qw4990 added the lgtm label Aug 30, 2023
@ti-chi-bot ti-chi-bot bot removed the lgtm label Aug 30, 2023
@ti-chi-bot
Copy link

ti-chi-bot bot commented Aug 30, 2023

@hawkingrei: adding LGTM is restricted to approvers and reviewers in OWNERS files.

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 kubernetes/test-infra repository.

@hawkingrei
Copy link
Member

/lgtm

@ti-chi-bot
Copy link

ti-chi-bot bot commented Aug 30, 2023

@hawkingrei: adding LGTM is restricted to approvers and reviewers in OWNERS files.

In response to this:

/lgtm

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.

@qw4990
Copy link
Contributor Author

qw4990 commented Aug 30, 2023

/lgtm

@ti-chi-bot
Copy link

ti-chi-bot bot commented Aug 30, 2023

@qw4990: you cannot LGTM your own PR.

In response to this:

/lgtm

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.

@ti-chi-bot ti-chi-bot bot added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Aug 30, 2023
@ti-chi-bot
Copy link

ti-chi-bot bot commented Aug 30, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: AilinKid, Defined2014, easonn7, hawkingrei, qw4990, XuHuaiyu

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 lgtm label Aug 30, 2023
@ti-chi-bot ti-chi-bot bot removed the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Aug 30, 2023
@ti-chi-bot
Copy link

ti-chi-bot bot commented Aug 30, 2023

[LGTM Timeline notifier]

Timeline:

  • 2023-08-30 10:21:32.566322676 +0000 UTC m=+1922457.115338664: ☑️ agreed by hawkingrei.
  • 2023-08-30 10:26:35.524812282 +0000 UTC m=+1922760.073828269: ☑️ agreed by Defined2014.

@ti-chi-bot ti-chi-bot bot merged commit 61f8825 into pingcap:master Aug 30, 2023
7 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm release-note-none Denotes a PR that doesn't merit a release note. sig/planner SIG: Planner size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support non-prepared plan cache (Stage 1)
6 participants