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

Fixed race condition in Buffer and MaterializedView, part 1 (ad-hoc) #3694

Merged
merged 3 commits into from
Nov 28, 2018

Conversation

alexey-milovidov
Copy link
Member

No description provided.

@alexey-milovidov alexey-milovidov merged commit 624a9ac into master Nov 28, 2018
@@ -178,7 +178,12 @@ BlockInputStreams StorageBuffer::read(
LOG_WARNING(log, "Destination table " << backQuoteIfNeed(destination_database) << "." << backQuoteIfNeed(destination_table)
<< " has no common columns with block in buffer. Block of data is skipped.");
else
{
auto lock = destination->lockStructure(false, __PRETTY_FUNCTION__);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably we should lock earlier (before the first call to destination->hasColumn)

@ztlpn
Copy link
Contributor

ztlpn commented Nov 30, 2018

#3719

proller pushed a commit to proller/ClickHouse that referenced this pull request Nov 30, 2018
proller pushed a commit to proller/ClickHouse that referenced this pull request Nov 30, 2018
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