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

tikv: choose right primary only contains SelectForUpdate & Delete-your-writes #18264

Merged
merged 5 commits into from
Jun 30, 2020
Merged

tikv: choose right primary only contains SelectForUpdate & Delete-your-writes #18264

merged 5 commits into from
Jun 30, 2020

Conversation

lysu
Copy link
Contributor

@lysu lysu commented Jun 29, 2020

What problem does this PR solve?

Problem Summary:

questions found follow by #18244

add test case that:

  1. txn full with Delete-Your-Writes, should commit success
  2. txn with Delete-Your-Writes and SelectForUpdate but write nothing.
  1. will pass
  2. will have problem that choose wrong primary key too.

https://github.com/pingcap/tidb/pull/18264/files#diff-d11e207d2529a00e79d72b84ae5172caR800 will fail

What is changed and how it works?

Proposal: xxx

What's Changed, How it Works:

  • add test case
  • fix txn only contain SFU choose wrong primary key problem

Related changes

  • Need to cherry-pick to the release branch

Check List

Tests

  • Unit test

Side effects

  • N/A

Release note


This change is Reviewable

@lysu lysu added sig/transaction SIG:Transaction needs-cherry-pick-3.0 type/bugfix This PR fixes a bug. labels Jun 29, 2020
@lysu lysu added this to the v4.0.2 milestone Jun 29, 2020
@codecov
Copy link

codecov bot commented Jun 29, 2020

Codecov Report

Merging #18264 into master will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             master     #18264   +/-   ##
===========================================
  Coverage   79.4461%   79.4461%           
===========================================
  Files           535        535           
  Lines        144129     144129           
===========================================
  Hits         114505     114505           
  Misses        20354      20354           
  Partials       9270       9270           

@lysu lysu modified the milestones: v4.0.2, v4.0.3 Jun 30, 2020
Copy link
Member

@jackysp jackysp 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
Copy link
Contributor

@jackysp,Thanks for you review.

@jackysp jackysp added the status/LGT1 Indicates that a PR has LGTM 1. label Jun 30, 2020
@coocood
Copy link
Member

coocood commented Jun 30, 2020

LGTM

@ti-srebot
Copy link
Contributor

@coocood,Thanks for you review.

@ti-srebot ti-srebot removed the status/LGT1 Indicates that a PR has LGTM 1. label Jun 30, 2020
@ti-srebot
Copy link
Contributor

@jackysp, Thanks for your review, however we are sorry that your vote won't be count. You already give a LGTM to this PR

@jackysp
Copy link
Member

jackysp commented Jun 30, 2020

/merge

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

/run-all-tests

@ti-srebot
Copy link
Contributor

@lysu merge failed.

@bobotu
Copy link
Contributor

bobotu commented Jun 30, 2020

/merge

@ti-srebot
Copy link
Contributor

/run-all-tests

@ti-srebot
Copy link
Contributor

@lysu merge failed.

@bobotu
Copy link
Contributor

bobotu commented Jun 30, 2020

/merge

@ti-srebot
Copy link
Contributor

/run-all-tests

@ti-srebot
Copy link
Contributor

@lysu merge failed.

@lysu lysu merged commit 402fd2a into pingcap:master Jun 30, 2020
@lysu lysu deleted the dev-fix-dyw-sfu branch June 30, 2020 11:31
ti-srebot pushed a commit to ti-srebot/tidb that referenced this pull request Jun 30, 2020
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-srebot
Copy link
Contributor

cherry pick to release-4.0 in PR #18291

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/transaction SIG:Transaction status/can-merge Indicates a PR has been approved by a committer. type/bugfix This PR fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants