Adjust test

This commit is contained in:
Alexey Milovidov 2021-04-10 15:03:45 +03:00
parent 173c0e5c43
commit 68b6b3352c
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,7 @@
<yandex>
<profiles>
<default>
<background_fetches_pool_size>3</background_fetches_pool_size>
</default>
</profiles>
</yandex>

View File

@ -32,6 +32,9 @@ def test_limited_fetches(started_cluster):
"""
Test checks that that we utilize all available threads for fetches
"""
node1.copy_file_to_container(os.path.join(SCRIPT_DIR, "configs/custom_settings.xml"), '/etc/clickhouse-server/users.d/fetches.xml')
node1.copy_file_to_container(os.path.join(SCRIPT_DIR, "configs/custom_settings.xml"), '/etc/clickhouse-server/users.d/fetches.xml')
node1.query("CREATE TABLE t (key UInt64, data String) ENGINE = ReplicatedMergeTree('/clickhouse/test/t', '1') ORDER BY tuple() PARTITION BY key")
node2.query("CREATE TABLE t (key UInt64, data String) ENGINE = ReplicatedMergeTree('/clickhouse/test/t', '2') ORDER BY tuple() PARTITION BY key")