Update src/Storages/MergeTree/MutateFromLogEntryTask.cpp

Co-authored-by: Alexander Tokmakov <tavplubix@clickhouse.com>
This commit is contained in:
alesapin 2022-09-17 19:10:23 +02:00 committed by GitHub
parent af259a2a68
commit db30a3041e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -134,7 +134,7 @@ ReplicatedMergeMutateTaskBase::PrepareResult MutateFromLogEntryTask::prepare()
.part_log_writer = {} .part_log_writer = {}
}; };
} }
else if (!storage.findReplicaHavingCoveringPart(entry.new_part_name, true, dummy).empty()) else if (!storage.findReplicaHavingCoveringPart(entry.new_part_name, /* active */ false, dummy).empty())
{ {
/// Why this if still needed? We can check for part in zookeeper, don't find it and sleep for any amount of time. During this sleep part will be actually committed from other replica /// Why this if still needed? We can check for part in zookeeper, don't find it and sleep for any amount of time. During this sleep part will be actually committed from other replica
/// and exclusive zero copy lock will be released. We will take the lock and execute mutation one more time, while it was possible just to download the part from other replica. /// and exclusive zero copy lock will be released. We will take the lock and execute mutation one more time, while it was possible just to download the part from other replica.