mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Try fix flaky test test_async_query_sending
This commit is contained in:
parent
7966fa2da6
commit
8e076c33d5
@ -0,0 +1,5 @@
|
||||
<clickhouse>
|
||||
<logger>
|
||||
<count>20</count>
|
||||
</logger>
|
||||
</clickhouse>
|
@ -23,7 +23,7 @@ def started_cluster():
|
||||
NODES["node"] = cluster.add_instance(
|
||||
"node",
|
||||
stay_alive=True,
|
||||
main_configs=["configs/remote_servers.xml"],
|
||||
main_configs=["configs/remote_servers.xml", "configs/logger.xml"],
|
||||
user_configs=["configs/users.xml"],
|
||||
)
|
||||
|
||||
@ -377,6 +377,9 @@ def test_async_connect(started_cluster):
|
||||
check_changing_replica_events(2)
|
||||
check_if_query_sending_was_not_suspended()
|
||||
|
||||
# Restart server to reset connection pool state
|
||||
NODES["node"].restart_clickhouse()
|
||||
|
||||
NODES["node"].query(
|
||||
"SELECT hostName(), id FROM distributed_connect ORDER BY id LIMIT 1 SETTINGS prefer_localhost_replica = 0, connect_timeout_with_failover_ms=5000, async_query_sending_for_remote=1, max_threads=1"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user