Merge pull request #44947 from Algunenano/background_pool_size_logical

Change error code on invalid background_pool_size config
This commit is contained in:
Alexey Milovidov 2023-01-06 03:19:40 +03:00 committed by GitHub
commit a205b41c56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ namespace DB
{
namespace ErrorCodes
{
extern const int LOGICAL_ERROR;
extern const int INVALID_CONFIG_PARAMETER;
}
struct TaskRuntimeData;
@ -172,7 +172,7 @@ public:
, metric(metric_)
{
if (max_tasks_count == 0)
throw Exception(ErrorCodes::LOGICAL_ERROR, "Task count for MergeTreeBackgroundExecutor must not be zero");
throw Exception(ErrorCodes::INVALID_CONFIG_PARAMETER, "Task count for MergeTreeBackgroundExecutor must not be zero");
pending.setCapacity(max_tasks_count);
active.set_capacity(max_tasks_count);