tidb icon indicating copy to clipboard operation
tidb copied to clipboard

Revert "planner: remove the useless variable tidb_enable_point_get_cache"

Open jackysp opened this issue 1 year ago • 8 comments

What problem does this PR solve?

Issue Number: close #51007, also will close #48958

Problem Summary:

What changed and how does it work?

Revert https://github.com/pingcap/tidb/pull/36844 Add tidb_enable_point_get_cache back.

Check List

Tests

  • [x] 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

jackysp avatar Feb 06 '24 09:02 jackysp

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 72.4517%. Comparing base (f0a26dd) to head (a30a9e3). Report is 1143 commits behind head on master.

Additional details and impacted files
@@               Coverage Diff                @@
##             master     #51008        +/-   ##
================================================
+ Coverage   70.5842%   72.4517%   +1.8675%     
================================================
  Files          1467       1567       +100     
  Lines        434825     477381     +42556     
================================================
+ Hits         306918     345871     +38953     
- Misses       108672     109335       +663     
- Partials      19235      22175      +2940     
Flag Coverage Δ
integration 52.2081% <100.0000%> (?)
unit 70.3083% <100.0000%> (-0.0888%) :arrow_down:

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

Components Coverage Δ
dumpling 54.2940% <ø> (ø)
parser ∅ <ø> (∅)
br 56.7501% <ø> (+11.0049%) :arrow_up:

codecov[bot] avatar Feb 06 '24 09:02 codecov[bot]

[LGTM Timeline notifier]

Timeline:

  • 2024-02-06 09:12:43.493383016 +0000 UTC m=+261689.060152915: :ballot_box_with_check: agreed by Defined2014.
  • 2024-02-06 09:35:34.732666471 +0000 UTC m=+263060.299436361: :ballot_box_with_check: agreed by qw4990.

ti-chi-bot[bot] avatar Feb 06 '24 09:02 ti-chi-bot[bot]

/cc @easonn7 @yudongusa

PTAL

Defined2014 avatar Feb 07 '24 01:02 Defined2014

@Defined2014: GitHub didn't allow me to request PR reviews from the following users: yudongusa, easonn7.

Note that only pingcap members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

/cc @easonn7 @yudongusa

PTAL

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[bot] avatar Feb 07 '24 01:02 ti-chi-bot[bot]

@jackysp did we have enough tests on adding this back to make sure it still works?

yudongusa avatar Feb 12 '24 15:02 yudongusa

@jackysp did we have enough tests on adding this back to make sure it still works?

@yudongusa When this switch was added originally, it seems that no testing was done. I think we can add the test for this switch in other pull requests. Currently, it is in a hidden state without documentation, so it will not affect customers either.

jackysp avatar Feb 22 '24 08:02 jackysp

/retest

qw4990 avatar Apr 26 '24 04:04 qw4990

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: AilinKid, Defined2014, qw4990 Once this PR has been reviewed and has the lgtm label, please assign easonn7 for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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[bot] avatar Apr 26 '24 04:04 ti-chi-bot[bot]

@jackysp: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
tiprow_fast_test a30a9e3c08a3db209fc249fced51c39400d799fb link true /test fast_test_tiprow
fast_test_tiprow a30a9e3c08a3db209fc249fced51c39400d799fb link true /test fast_test_tiprow

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.

tiprow[bot] avatar Apr 26 '24 04:04 tiprow[bot]

@jackysp: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
idc-jenkins-ci-tidb/unit-test a30a9e3c08a3db209fc249fced51c39400d799fb link true /test unit-test

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.

ti-chi-bot[bot] avatar Apr 26 '24 04:04 ti-chi-bot[bot]

PR needs rebase.

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[bot] avatar Jul 05 '24 22:07 ti-chi-bot[bot]