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

txn: don't protect rollback for BatchRollback #7605

Merged
merged 2 commits into from
Apr 21, 2020

Conversation

youjiali1995
Copy link
Contributor

cherry-pick #7494 to release-3.0


Signed-off-by: Yilin Chen sticnarf@gmail.com

What problem does this PR solve?

Issue Number: close #7490

Problem Summary: rollback calls cleanup and it writes protected rollback record for all non-exsitent keys which may causes performance regression in heavy contention workload with optimistic transaction. See #7435

What is changed and how it works?

What's Changed: Only cleanup or check_txn_status need to write the protected rollback record.

Related changes

  • Need to cherry-pick to the release branch

Check List

Tests

  • Unit test

Release note

Do not protect rollback records written by BatchRollback to improve performance when there are many write conflicts in optimistic transactions.

Signed-off-by: youjiali1995 <zlwgx1023@gmail.com>
@youjiali1995 youjiali1995 added the type/cherry-pick Type: PR - Cherry pick label Apr 21, 2020
@youjiali1995 youjiali1995 added this to the v3.0.13 milestone Apr 21, 2020
@youjiali1995 youjiali1995 requested review from sticnarf, MyonKeminta and AndreMouche and removed request for MyonKeminta April 21, 2020 15:29
Copy link
Contributor

@MyonKeminta MyonKeminta left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@HunDunDM HunDunDM left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@HunDunDM HunDunDM left a comment

Choose a reason for hiding this comment

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

LGTM

@youjiali1995
Copy link
Contributor Author

/merge

6 similar comments
@youjiali1995
Copy link
Contributor Author

/merge

@youjiali1995
Copy link
Contributor Author

/merge

@youjiali1995
Copy link
Contributor Author

/merge

@youjiali1995
Copy link
Contributor Author

/merge

@youjiali1995
Copy link
Contributor Author

/merge

@youjiali1995
Copy link
Contributor Author

/merge

@youjiali1995
Copy link
Contributor Author

/run-all-tests

@sre-bot sre-bot added the status/can-merge Status: Can merge to base branch label Apr 21, 2020
@sre-bot
Copy link
Contributor

sre-bot commented Apr 21, 2020

/run-all-tests

@sre-bot
Copy link
Contributor

sre-bot commented Apr 21, 2020

Your auto merge job has been accepted, waiting for:

  • 7584

@youjiali1995 youjiali1995 merged commit ed4f8ea into tikv:release-3.0 Apr 21, 2020
@youjiali1995 youjiali1995 deleted the cherry-pick-7494 branch April 21, 2020 16:33
youjiali1995 added a commit to youjiali1995/tikv that referenced this pull request Apr 22, 2020
Signed-off-by: youjiali1995 <zlwgx1023@gmail.com>
youjiali1995 added a commit that referenced this pull request Apr 27, 2020
Signed-off-by: youjiali1995 <zlwgx1023@gmail.com>
solotzg added a commit to pingcap/tidb-engine-ext that referenced this pull request May 14, 2020
txn: only wake up waiters when locks are indeed released (tikv#7379) (tikv#7585)

Signed-off-by: youjiali1995 <zlwgx1023@gmail.com>

txn: don't protect rollback for BatchRollback (tikv#7605) (tikv#7608)

Signed-off-by: youjiali1995 <zlwgx1023@gmail.com>

tidb_query: add is true/false keep null ScalarFuncSig (tikv#7532) (tikv#7566)

Signed-off-by: zhongzc <zhongzc_arch@outlook.com>

tidb_query: fix the logical behavior of floats (tikv#7342) (tikv#7582)

Signed-off-by: zhongzc <zhongzc_arch@outlook.com>

tidb_query: fix converting bytes to bool (tikv#7486) (tikv#7547)

Signed-off-by: zhongzc <zhongzc_arch@outlook.com>

raftstore: change the condition of proposing rollback merge (tikv#6584) (tikv#7762)

Signed-off-by: Liqi Geng <gengliqiii@gmail.com>
Signed-off-by: Tong Zhigao <tongzhigao@pingcap.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/can-merge Status: Can merge to base branch type/cherry-pick Type: PR - Cherry pick
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants