Skip to content

Storage: should seek before read#7161

Merged
ti-chi-bot merged 3 commits intopingcap:release-7.0from
Lloyd-Pottiger:fix-lm-7.0
Mar 25, 2023
Merged

Storage: should seek before read#7161
ti-chi-bot merged 3 commits intopingcap:release-7.0from
Lloyd-Pottiger:fix-lm-7.0

Conversation

@Lloyd-Pottiger
Copy link
Contributor

@Lloyd-Pottiger Lloyd-Pottiger commented Mar 25, 2023

What problem does this PR solve?

Issue Number: close pingcap/tidb#42555

Problem Summary:

What is changed and how it works?

  1. set partition_table_scan.pushed_down_filter_conditions
  2. seek before read when skip last time
  3. & with bitmap when filter condition is always true

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

None

Signed-off-by: Lloyd-Pottiger <yan1579196623@gmail.com>
@ti-chi-bot
Copy link
Member

ti-chi-bot commented Mar 25, 2023

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • JinheLin
  • ywqzzy

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Details

Reviewer can indicate their review by submitting an approval review.
Reviewer can cancel approval by submitting a request changes review.

@ti-chi-bot ti-chi-bot added do-not-merge/needs-linked-issue 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. labels Mar 25, 2023
@Lloyd-Pottiger Lloyd-Pottiger changed the base branch from master to release-7.0 March 25, 2023 05:33
@Lloyd-Pottiger
Copy link
Contributor Author

/run-all-tests

@JaySon-Huang
Copy link
Contributor

Can we add tests to prevent it happen again?

@Lloyd-Pottiger
Copy link
Contributor Author

Can we add tests to prevent it happen again?

will add in master, we should merge into 7.0 as soon as possible, so will not add ut in this pr.

@Lloyd-Pottiger
Copy link
Contributor Author

/run-integration-test

@Lloyd-Pottiger
Copy link
Contributor Author

[2023-03-25T05:56:50.399Z] tidb-ci/async_grpc/mpp_fail.test: Running
[2023-03-25T05:56:53.682Z]   File: tidb-ci/async_grpc/mpp_fail.test
[2023-03-25T05:56:53.682Z]   Error line: 35
[2023-03-25T05:56:53.682Z]   Error: DBGInvoke get_active_threads_in_dynamic_thread_pool()
[2023-03-25T05:56:53.682Z]   Result:
[2023-03-25T05:56:53.682Z]     ┌─get_active_threads_in_dynamic_thread_pool()─┐
[2023-03-25T05:56:53.682Z]     │ 1                                           │
[2023-03-25T05:56:53.682Z]     └─────────────────────────────────────────────┘
[2023-03-25T05:56:53.682Z]   Expected:
[2023-03-25T05:56:53.682Z]     ┌─get_active_threads_in_dynamic_thread_pool()─┐
[2023-03-25T05:56:53.682Z]     │ 0                                           │
[2023-03-25T05:56:53.682Z]     └─────────────────────────────────────────────┘

unstable test

if (!filter)
{
Block rest_column_block = rest_column_stream->read();
IColumn::Filter filter;
Copy link
Contributor

Choose a reason for hiding this comment

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

Better to be another name since name filter is used before.

Signed-off-by: Lloyd-Pottiger <yan1579196623@gmail.com>
@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Mar 25, 2023
@ti-chi-bot ti-chi-bot added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Mar 25, 2023
@Lloyd-Pottiger
Copy link
Contributor Author

/merge

@ti-chi-bot
Copy link
Member

@Lloyd-Pottiger: It seems you want to merge this PR, I will help you trigger all the tests:

/run-all-tests

You only need to trigger /merge once, and if the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes.

If you have any questions about the PR merge process, please refer to pr process.

Details

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 ti-community-infra/tichi repository.

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

DetailsCommit hash: 37c49b9

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Mar 25, 2023
@Lloyd-Pottiger
Copy link
Contributor Author

/run-integration-test

@ti-chi-bot ti-chi-bot merged commit 16a60b0 into pingcap:release-7.0 Mar 25, 2023
@Lloyd-Pottiger Lloyd-Pottiger deleted the fix-lm-7.0 branch March 28, 2023 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-pick-approved Cherry pick PR approved by release team. 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. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants