mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Merge pull request #61395 from Avogar/fox-test-clusters-actual-information
Fix test test_system_clusters_actual_information flakiness
This commit is contained in:
commit
fef38bded1
@ -12,20 +12,12 @@ cluster = ClickHouseCluster(__file__)
|
||||
node = cluster.add_instance(
|
||||
"node", with_zookeeper=True, main_configs=["configs/remote_servers.xml"]
|
||||
)
|
||||
node_1 = cluster.add_instance("node_1", with_zookeeper=True)
|
||||
|
||||
|
||||
@pytest.fixture(scope="module")
|
||||
def started_cluster():
|
||||
try:
|
||||
cluster.start()
|
||||
node_1.query_with_retry("DROP TABLE IF EXISTS replicated")
|
||||
|
||||
node_1.query_with_retry(
|
||||
"""CREATE TABLE replicated (id UInt32, date Date) ENGINE =
|
||||
ReplicatedMergeTree('/clickhouse/tables/replicated', 'node_1') ORDER BY id PARTITION BY toYYYYMM(date)"""
|
||||
)
|
||||
|
||||
node.query_with_retry(
|
||||
"CREATE TABLE distributed (id UInt32, date Date) ENGINE = Distributed('test_cluster', 'default', 'replicated')"
|
||||
)
|
||||
@ -37,8 +29,6 @@ def started_cluster():
|
||||
|
||||
|
||||
def test(started_cluster):
|
||||
cluster.pause_container("node_1")
|
||||
|
||||
node.query("SYSTEM RELOAD CONFIG")
|
||||
error = node.query_and_get_error(
|
||||
"SELECT count() FROM distributed SETTINGS receive_timeout=1, handshake_timeout_ms=1"
|
||||
@ -67,5 +57,3 @@ def test(started_cluster):
|
||||
|
||||
assert recovery_time == 0
|
||||
assert errors_count == 0
|
||||
|
||||
cluster.unpause_container("node_1")
|
||||
|
Loading…
Reference in New Issue
Block a user