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

*: remove kv.BypassLatch option and enable latch scheduler by default #7882

Merged
merged 2 commits into from
Oct 15, 2018

Conversation

tiancaiamao
Copy link
Contributor

What problem does this PR solve?

  1. kv.BypassLatch was introduced to handle the fake transaction conflicting problem
    in the old implementation. After redesign of the latch scheduler, it's not needed any more.

  2. Enable latch scheduler by default makes CI to run it, we can fix bugs and make this feature
    more stable.

What is changed and how it works?

Set Capacity to 2048000 cost about 96M memory.
The old value 10240000 cost more than 700M, which I think is too large.

Check List

Tests

  • No code

Side effects

There is a small performance penalty, less than 5%, users are free to disable it.

@shenli

kv.BypassLatch was introduced to handle the fake transaction confliction problem
in the old implementation. After redesign of the latch scheduler, it's not
needed any more.

Enable latch scheduler makes CI to run it, we can fix bugs and make this feature
more stable.
There is a small performance penalty, less than 5%, users are free to disable it.
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

@ngaut
Copy link
Member

ngaut commented Oct 13, 2018

Can we enable latch and import data to TiDB?

@tiancaiamao
Copy link
Contributor Author

Sure! @ngaut

@ngaut
Copy link
Member

ngaut commented Oct 15, 2018

/run-all-tests

@ngaut
Copy link
Member

ngaut commented Oct 15, 2018

LGTM

@ngaut ngaut merged commit a8f2909 into pingcap:master Oct 15, 2018
@tiancaiamao tiancaiamao deleted the enable-latch-scheduler branch October 15, 2018 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants