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 order of destruction of table locks and child streams #4608

Merged
merged 3 commits into from
Mar 6, 2019

Conversation

ztlpn
Copy link
Contributor

@ztlpn ztlpn commented Mar 6, 2019

Category (leave one):

  • Bug Fix

Short description (up to few sentences):

Fixed a very rare crash with the message mutex lock failed: Invalid argument that could happen when a MergeTree table was dropped concurrently with a SELECT.

Alexey Zatelepin added 2 commits March 6, 2019 15:25
Incorrect order could lead to a very rare `mutex lock failed: Invalid argument`
error when MergeTree table was dropped and its parts were deleted defore the destruction
of streams that were reading from that parts.
@alexey-milovidov alexey-milovidov merged commit 98cabc6 into master Mar 6, 2019
@alexey-milovidov
Copy link
Member

TODO: (as you suggested) move table locks to query context.

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.

2 participants