Merge pull request #28310 from azat/intersecting-parts

Fix intersecting parts due to new part had been replaced with an empty part
This commit is contained in:
tavplubix 2021-08-31 10:27:33 +03:00 committed by GitHub
commit 0708d51ad1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -192,7 +192,7 @@ void ReplicatedMergeTreePartCheckThread::searchForMissingPartAndFetchIfPossible(
if (missing_part_search_result == MissingPartSearchResult::LostForever)
{
auto lost_part_info = MergeTreePartInfo::fromPartName(part_name, storage.format_version);
if (lost_part_info.level != 0)
if (lost_part_info.level != 0 || lost_part_info.mutation != 0)
{
Strings source_parts;
bool part_in_queue = storage.queue.checkPartInQueueAndGetSourceParts(part_name, source_parts);