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 MSan failure in MergeTree background task #11420

Merged
merged 2 commits into from
Jun 4, 2020
Merged

Conversation

alexey-milovidov
Copy link
Member

Changelog category (leave one):

  • Bug Fix

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Fix potential uninitialized memory read in MergeTree shutdown if table was not created successfully.

Detailed description:
https://clickhouse-test-reports.s3.yandex.net/0/8bf8b44510235cbd72c3aa59f47b227ac31b75bb/stress_test_(memory)/stderr.log

The issue happens when MergeTree table tries to create two background tasks in startup and fails in the middle. The method startup was not exception safe.

@alexey-milovidov alexey-milovidov added the testing Special issue with list of bugs found by CI label Jun 3, 2020
@alexey-milovidov
Copy link
Member Author

I checked all other implementations of IStorage::startup methods and the only suspicious was for StorageKafka.

@blinkov blinkov added the pr-bugfix Pull request with bugfix, not backported by default label Jun 3, 2020
@alesapin alesapin merged commit 0a453f5 into master Jun 4, 2020
@alesapin alesapin deleted the fix-msan-failure branch June 4, 2020 07:59
KochetovNicolai pushed a commit that referenced this pull request Jun 8, 2020
Fix MSan failure in MergeTree background task

(cherry picked from commit 0a453f5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-docs-needed 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.

5 participants