Merge pull request #27002 from azat/mutation-stuck

Fix possible mutation stuck due to race with DROP_RANGE
This commit is contained in:
alexey-milovidov 2021-07-31 21:17:46 +03:00 committed by GitHub
commit 701e2ffd79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -281,6 +281,8 @@ void ReplicatedMergeTreeQueue::updateStateOnQueueEntryRemoval(
current_parts.remove(*drop_range_part_name);
virtual_parts.remove(*drop_range_part_name);
removeCoveredPartsFromMutations(*drop_range_part_name, /*remove_part = */ true, /*remove_covered_parts = */ false);
}
if (entry->type == LogEntry::DROP_RANGE)