mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 09:32:06 +00:00
Merge pull request #21432 from azat/flaky-distributed-tests
Fix flaky tests with distributed queries
This commit is contained in:
commit
af90658369
@ -39,6 +39,7 @@ ln -sf $SRC_PATH/users.d/readonly.xml $DEST_SERVER_PATH/users.d/
|
||||
ln -sf $SRC_PATH/users.d/access_management.xml $DEST_SERVER_PATH/users.d/
|
||||
ln -sf $SRC_PATH/users.d/database_atomic_drop_detach_sync.xml $DEST_SERVER_PATH/users.d/
|
||||
ln -sf $SRC_PATH/users.d/opentelemetry.xml $DEST_SERVER_PATH/users.d/
|
||||
ln -sf $SRC_PATH/users.d/remote_queries.xml $DEST_SERVER_PATH/users.d/
|
||||
|
||||
ln -sf $SRC_PATH/ints_dictionary.xml $DEST_SERVER_PATH/
|
||||
ln -sf $SRC_PATH/strings_dictionary.xml $DEST_SERVER_PATH/
|
||||
|
13
tests/config/users.d/remote_queries.xml
Normal file
13
tests/config/users.d/remote_queries.xml
Normal file
@ -0,0 +1,13 @@
|
||||
<yandex>
|
||||
<profiles>
|
||||
<default>
|
||||
<!-- Avoid "Connection failed at try №1" messages. -->
|
||||
<connect_timeout_with_failover_ms>2000</connect_timeout_with_failover_ms>
|
||||
<connect_timeout_with_failover_secure_ms>3000</connect_timeout_with_failover_secure_ms>
|
||||
<!-- Avoid this logic in tests to avoid EOF (10 hours is enough for tests)-->
|
||||
<idle_connection_timeout>36000</idle_connection_timeout>
|
||||
<!-- NOTE: instead of tunning idle_connection_timeout,
|
||||
SYSTEM RELOAD CONFIG can be executed before each test -->
|
||||
</default>
|
||||
</profiles>
|
||||
</yandex>
|
@ -1,7 +1,3 @@
|
||||
-- Avoid "Connection failed at try №1" messages.
|
||||
SET send_logs_level = 'none';
|
||||
SET connect_timeout_with_failover_ms = 5000;
|
||||
|
||||
DROP TABLE IF EXISTS source_table1;
|
||||
DROP TABLE IF EXISTS source_table2;
|
||||
DROP TABLE IF EXISTS distributed_table1;
|
||||
|
@ -1,9 +1,5 @@
|
||||
-- TODO: correct testing with real unique shards
|
||||
|
||||
-- Avoid "Connection failed at try №1" messages.
|
||||
SET send_logs_level = 'fatal';
|
||||
SET connect_timeout_with_failover_ms = 5000;
|
||||
|
||||
set optimize_distributed_group_by_sharding_key=1;
|
||||
|
||||
drop table if exists dist_01247;
|
||||
|
@ -1,9 +1,5 @@
|
||||
-- TODO: correct testing with real unique shards
|
||||
|
||||
-- Avoid "Connection failed at try №1" messages.
|
||||
SET send_logs_level = 'fatal';
|
||||
SET connect_timeout_with_failover_ms = 5000;
|
||||
|
||||
set optimize_distributed_group_by_sharding_key=1;
|
||||
|
||||
drop table if exists dist_01247;
|
||||
|
@ -1,5 +1,5 @@
|
||||
send_timeout Seconds 300
|
||||
connect_timeout Seconds 10
|
||||
connect_timeout_with_failover_ms Milliseconds 50
|
||||
connect_timeout_with_failover_secure_ms Milliseconds 100
|
||||
connect_timeout_with_failover_ms Milliseconds 2000
|
||||
connect_timeout_with_failover_secure_ms Milliseconds 3000
|
||||
max_memory_usage UInt64 10000000000
|
||||
|
Loading…
Reference in New Issue
Block a user