Adjust error message about intersecting parts (remove ZooKeeper note from common code)

It could happen for MergeTree as well.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
This commit is contained in:
Azat Khuzhin 2024-10-08 13:45:37 +02:00
parent 54a1b1c573
commit fd9c4d53cc

View File

@ -1329,7 +1329,7 @@ void MergeTreeData::PartLoadingTree::add(const MergeTreePartInfo & info, const S
if (!prev_info.isDisjoint(info)) if (!prev_info.isDisjoint(info))
{ {
throw Exception(ErrorCodes::LOGICAL_ERROR, throw Exception(ErrorCodes::LOGICAL_ERROR,
"Part {} intersects previous part {}. It is a bug or a result of manual intervention in the server or ZooKeeper data", "Part {} intersects previous part {}. It is a bug or a result of manual intervention",
name, prev->second->name); name, prev->second->name);
} }
} }
@ -1346,7 +1346,7 @@ void MergeTreeData::PartLoadingTree::add(const MergeTreePartInfo & info, const S
if (!next_info.isDisjoint(info)) if (!next_info.isDisjoint(info))
{ {
throw Exception(ErrorCodes::LOGICAL_ERROR, throw Exception(ErrorCodes::LOGICAL_ERROR,
"Part {} intersects next part {}. It is a bug or a result of manual intervention in the server or ZooKeeper data", "Part {} intersects next part {}. It is a bug or a result of manual intervention",
name, it->second->name); name, it->second->name);
} }
} }