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

store/tikv: fix BatchPointGet wrong result. #18814

Merged
merged 2 commits into from
Jul 28, 2020

Conversation

coocood
Copy link
Member

@coocood coocood commented Jul 28, 2020

What problem does this PR solve?

in-transaction BatchPointGet returns wrong result in certain case.

What is changed and how it works?

Do not modify input keys slice when do snapshot batch get.

Related changes

  • Need to cherry-pick to the release branch

Check List

Tests

  • Unit test

Release note

  • fix BatchPointGet wrong result.

@coocood coocood added the type/bugfix This PR fixes a bug. label Jul 28, 2020
@coocood coocood requested a review from a team as a code owner July 28, 2020 01:39
@coocood coocood requested review from XuHuaiyu and removed request for a team July 28, 2020 01:39
Copy link
Member

@wjhuang2016 wjhuang2016 left a comment

Choose a reason for hiding this comment

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

LGTM

@ti-srebot ti-srebot added the status/LGT1 Indicates that a PR has LGTM 1. label Jul 28, 2020
@codecov
Copy link

codecov bot commented Jul 28, 2020

Codecov Report

Merging #18814 into master will increase coverage by 0.0347%.
The diff coverage is 100.0000%.

@@               Coverage Diff                @@
##             master     #18814        +/-   ##
================================================
+ Coverage   79.1288%   79.1636%   +0.0347%     
================================================
  Files           544        544                
  Lines        147026     146921       -105     
================================================
- Hits         116340     116308        -32     
+ Misses        21269      21208        -61     
+ Partials       9417       9405        -12     

@github-actions github-actions bot added the sig/execution SIG execution label Jul 28, 2020
Copy link
Contributor

@crazycs520 crazycs520 left a comment

Choose a reason for hiding this comment

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

LGTM

@ti-srebot ti-srebot removed the status/LGT1 Indicates that a PR has LGTM 1. label Jul 28, 2020
@ti-srebot ti-srebot added the status/LGT2 Indicates that a PR has LGTM 2. label Jul 28, 2020
@crazycs520
Copy link
Contributor

/run-all-tests

@coocood
Copy link
Member Author

coocood commented Jul 28, 2020

/merge

@ti-srebot ti-srebot added the status/can-merge Indicates a PR has been approved by a committer. label Jul 28, 2020
@ti-srebot
Copy link
Contributor

/run-all-tests

@ti-srebot
Copy link
Contributor

@coocood merge failed.

@coocood coocood merged commit 936b300 into pingcap:master Jul 28, 2020
@coocood coocood deleted the fix-batch-point-get-cache branch July 28, 2020 03:01
ti-srebot pushed a commit to ti-srebot/tidb that referenced this pull request Jul 28, 2020
@ti-srebot
Copy link
Contributor

cherry pick to release-4.0 in PR #18815

jackysp pushed a commit that referenced this pull request Jul 28, 2020
@uglyengineer uglyengineer added this to the v4.0.4 milestone Jul 28, 2020
imtbkcat pushed a commit that referenced this pull request Jul 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/execution SIG execution status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. type/bugfix This PR fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants