mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
dbms: small fix. [#METR-2807]
This commit is contained in:
parent
19a037c8a4
commit
4e2f2eca05
@ -278,7 +278,7 @@ void StorageReplicatedMergeTree::checkParts()
|
||||
auto containing = data.getContainingPart(missing_name);
|
||||
if (!containing)
|
||||
throw Exception("Not found " + toString(expected_parts.size())
|
||||
+ " parts (including " + missing_name + ") in table " + data.getTableName(),
|
||||
+ " parts (including " + missing_name + ") in table " + getTableName(),
|
||||
ErrorCodes::NOT_FOUND_EXPECTED_DATA_PART);
|
||||
LOG_ERROR(log, "Ignoring missing local part " << missing_name << " because part " << containing->name << " exists");
|
||||
if (unexpected_parts.count(containing))
|
||||
@ -292,7 +292,7 @@ void StorageReplicatedMergeTree::checkParts()
|
||||
unexpected_parts.size() > 2 ||
|
||||
expected_parts.size() > 20)
|
||||
{
|
||||
throw Exception("The local set of parts of table " + data.getTableName() + " doesn't look like the set of parts in ZooKeeper."
|
||||
throw Exception("The local set of parts of table " + getTableName() + " doesn't look like the set of parts in ZooKeeper."
|
||||
" There are " + toString(unexpected_parts.size()) + " unexpected parts, "
|
||||
+ toString(parts_to_add.size()) + " unexpectedly merged parts, "
|
||||
+ toString(expected_parts.size()) + " unexpectedly obsolete parts",
|
||||
|
Loading…
Reference in New Issue
Block a user