Skip to content

Commit 092655c

Browse files
authored
Merge pull request ClickHouse#92328 from ClickHouse/backport/25.8/92223
Backport ClickHouse#92223 to 25.8: Remove no active host exception in DDL worker
2 parents 8f94044 + 4b88f4e commit 092655c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Interpreters/DDLWorker.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ namespace ErrorCodes
7676
extern const int NOT_IMPLEMENTED;
7777
extern const int TOO_MANY_SIMULTANEOUS_QUERIES;
7878
extern const int NO_ZOOKEEPER;
79-
extern const int INVALID_CONFIG_PARAMETER;
8079
}
8180

8281
constexpr const char * TASK_PROCESSED_OUT_REASON = "Task has been already processed";
@@ -1378,8 +1377,10 @@ void DDLWorker::markReplicasActive(bool /*reinitialized*/)
13781377
{
13791378
const auto & cluster = it.second;
13801379
if (!cluster->getHostIDs().empty())
1381-
throw Exception(
1382-
ErrorCodes::INVALID_CONFIG_PARAMETER, "There are clusters with host ids but no local host found for this replica.");
1380+
{
1381+
LOG_WARNING(log, "There are clusters with host ids but no local host found for this replica.");
1382+
break;
1383+
}
13831384
}
13841385
}
13851386
}

0 commit comments

Comments
 (0)