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

Fix flush deadlock #4913

Merged
merged 1 commit into from
Nov 25, 2015
Merged

Fix flush deadlock #4913

merged 1 commit into from
Nov 25, 2015

Conversation

benbjohnson
Copy link
Contributor

Overview

This commit fixes a deadlock that occurs during b1 flushes. It's caused by taking locks in a different order. In the flush, b1 locks the engine and then bolt. However, in the query cursor, a lock is obtained on bolt first (via DB.Begin()) and then the engine is locked while reading from the engine's cache.

/cc @corylanou @pauldix @beckettsean

This commit fixes a deadlock that occurs during b1 flushes. It's
caused by taking locks in a different order. In the flush, b1
locks the engine and then bolt. However, in the query cursor, a
lock is obtained on bolt first (via `DB.Begin()`) and then the
engine is locked while reading from the engine's cache.
@corylanou
Copy link
Contributor

Awesome catch! +1

@dgnorton
Copy link
Contributor

+1 nice find!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants