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

mvcc: release lock early when traversing index #10526

Merged
merged 1 commit into from
Mar 6, 2019

Conversation

jingyih
Copy link
Contributor

@jingyih jingyih commented Mar 6, 2019

Make a copy-on-write clone of the index tree when start traversing. So that lock can be released right after the clone to improve backend concurrency.

Suggested by @xiang90.

Make a copy-on-write clone of index tree when traversing. So that lock
can be released right after the clone to improve backend concurrency.
@xiang90
Copy link
Contributor

xiang90 commented Mar 6, 2019

lgtm

@xiang90 xiang90 merged commit 949bcbd into etcd-io:master Mar 6, 2019
@jingyih jingyih deleted the improve_mvcc_index_concurrency branch March 7, 2019 00:42
@jingyih
Copy link
Contributor Author

jingyih commented May 29, 2019

@jgraettinger I found similar data race in the CI test results. Thanks for reporting.
https://travis-ci.com/etcd-io/etcd/jobs/197250712#L2277

jingyih added a commit to jingyih/etcd that referenced this pull request May 30, 2019
xiang90 added a commit that referenced this pull request May 30, 2019
nolouch pushed a commit to nolouch/etcd that referenced this pull request Dec 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants