mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 02:21:59 +00:00
dbms: fixed error with 'max_concurrent_queries_for_user' setting in distributed queries [#METR-17965].
This commit is contained in:
parent
efc1f35c21
commit
d86761f504
@ -151,6 +151,8 @@ BlockInputStreams StorageDistributed::read(
|
|||||||
{
|
{
|
||||||
Settings new_settings = settings;
|
Settings new_settings = settings;
|
||||||
new_settings.queue_max_wait_ms = Cluster::saturate(new_settings.queue_max_wait_ms, settings.limits.max_execution_time);
|
new_settings.queue_max_wait_ms = Cluster::saturate(new_settings.queue_max_wait_ms, settings.limits.max_execution_time);
|
||||||
|
/// Не имеет смысла на удалённых серверах, так как запрос отправляется обычно с другим user-ом.
|
||||||
|
new_settings.max_concurrent_queries_for_user = 0;
|
||||||
|
|
||||||
size_t result_size = (cluster.pools.size() * settings.max_parallel_replicas) + cluster.getLocalNodesNum();
|
size_t result_size = (cluster.pools.size() * settings.max_parallel_replicas) + cluster.getLocalNodesNum();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user