Fix race condition in SYSTEM SYNC REPLICA by alexey-milovidov · Pull Request #11691 · ClickHouse/ClickHouse · GitHub
Skip to content

Fix race condition in SYSTEM SYNC REPLICA#11691

Merged
alesapin merged 2 commits into
masterfrom
fix-race-condition-system-sync-replicas
Jun 16, 2020
Merged

Fix race condition in SYSTEM SYNC REPLICA#11691
alesapin merged 2 commits into
masterfrom
fix-race-condition-system-sync-replicas

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Jun 15, 2020

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Bug Fix

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Fix very rare race condition in SYSTEM SYNC REPLICA. If the replicated table is created and at the same time from the separate connection another client is issuing SYSTEM SYNC REPLICA command on that table (this is unlikely, because another client should be aware that the table is created), it's possible to get nullptr dereference.

Detailed description / Documentation draft:
Found by Thread Fuzzer: #9813

@alexey-milovidov alexey-milovidov added the testing Special issue with list of bugs found by CI label Jun 15, 2020
@alexey-milovidov alexey-milovidov mentioned this pull request Jun 15, 2020
16 tasks
@blinkov blinkov added the pr-bugfix Pull request with bugfix, not backported by default label Jun 15, 2020
@alexey-milovidov

Copy link
Copy Markdown
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-bugfix Pull request with bugfix, not backported by default testing Special issue with list of bugs found by CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants