Conversation
Contributor
|
This is an automated comment for commit f126094 with description of existing statuses. It's updated for the latest CI running ✅ Click here to open a full report in a separate page Successful checks
|
Member
This can be an integration test, |
vdimir
approved these changes
Aug 13, 2024
zvonand
pushed a commit
to Altinity/ClickHouse
that referenced
this pull request
Oct 6, 2025
Fix 'Refresh set entry already exists'
zvonand
pushed a commit
to Altinity/ClickHouse
that referenced
this pull request
Oct 6, 2025
Fix 'Refresh set entry already exists'
13 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
If server crashed in the middle of table drop, on next startup DatabaseCatalog runs a special code path to temporarily (for ~8 minutes by default) attach the table then drop it again. If it's a refreshable materialized view, during this time it was occupying a "RefreshSet" entry, preventing new MVs with the same name from being created.
The problem was that StorageMaterializedView added itself to RefreshSet when the table is created rather than when it's started (startup() is not called on tables temporarily attached for cleanup). This PR fixes it. It also makes RefreshSet allow name collisions in case there are other cases when it can happen.
Tested it manually by killing the server during
StorageMaterializedView::drop().