Merge pull request #36358 from ClickHouse/don-t-randomize-priority

Do not randomize "priority" setting
This commit is contained in:
Alexey Milovidov 2022-04-18 07:04:36 +03:00 committed by GitHub
commit 0af183826d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 8 deletions

View File

@ -182,9 +182,7 @@ ASTPtr getCreateTableQueryClean(const StorageID & table_id, ContextPtr context)
}
///
/// SystemLogs
///
SystemLogs::SystemLogs(ContextPtr global_context, const Poco::Util::AbstractConfiguration & config)
{
query_log = createSystemLog<QueryLog>(global_context, "system", "query_log", config, "query_log");
@ -273,9 +271,7 @@ void SystemLogs::shutdown()
log->shutdown();
}
///
/// SystemLog
///
template <typename LogElement>
SystemLog<LogElement>::SystemLog(
ContextPtr context_,
@ -545,7 +541,6 @@ ASTPtr SystemLog<LogElement>::getCreateTableQuery()
storage_settings->loadFromQuery(*create->storage);
}
return create;
}

View File

@ -382,7 +382,6 @@ class SettingsRandomizer:
"group_by_two_level_threshold_bytes": lambda: 1 if random.random() < 0.1 else 2 ** 60 if random.random() < 0.11 else 50000000,
"distributed_aggregation_memory_efficient": lambda: random.randint(0, 1),
"fsync_metadata": lambda: random.randint(0, 1),
"priority": lambda: min(3, int(abs(random.gauss(0, 2)))),
"output_format_parallel_formatting": lambda: random.randint(0, 1),
"input_format_parallel_parsing": lambda: random.randint(0, 1),
"min_chunk_bytes_for_parallel_parsing": lambda: max(1024, int(random.gauss(10 * 1024 * 1024, 5 * 1000 * 1000))),