Merge pull request #21432 from azat/flaky-distributed-tests

Fix flaky tests with distributed queries
This commit is contained in:
alexey-milovidov 2021-03-06 02:04:07 +03:00 committed by GitHub
commit af90658369
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 16 additions and 14 deletions

View File

@ -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/

View 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>

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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