-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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 a race condition during concurrent ALTER COLUMN queries #4592
Conversation
c89c30a
to
9de59c8
Compare
9de59c8
to
09d0ae5
Compare
09d0ae5
to
f7217d9
Compare
*/ | ||
mutable RWLock data_lock = RWLockImpl::create(); | ||
/// It is taken for share for the entire INSERT query and the entire merge of the parts (for MergeTree). | ||
/// ALTER queries acquire an exclusive lock to ensure |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To ensure what?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... that no new data appear?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops :) I will add the missing part of the comment.
Fix a race condition during concurrent ALTER COLUMN queries
For changelog. Remove if this is non-significant change.
Category (leave one):
Short description (up to few sentences):
Fix a race condition during concurrent ALTER COLUMN queries that could lead to a server crash (fixes issue #3421).