Skip to content

Commit ca927a7

Browse files
committed
Add test
1 parent c5f6faa commit ca927a7

File tree

1 file changed

+11
-0
lines changed
  • tests/integration/test_s3_cluster

1 file changed

+11
-0
lines changed

tests/integration/test_s3_cluster/test.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,3 +537,14 @@ def test_cluster_default_expression(started_cluster):
537537
)
538538

539539
assert result == expected_result
540+
541+
542+
def test_dead_cluster(started_cluster):
543+
node = started_cluster.instances["s0_1_0"]
544+
545+
with started_cluster.pause_container("s0_0_0"):
546+
with started_cluster.pause_container("s0_0_1"):
547+
result = node.query_and_get_error(
548+
f"SELECT * FROM s3Cluster(first_shard, 'http://minio1:9001/root/data/clickhouse/part1.csv', 'minio', '{minio_secret_key}', 'CSV', 'name String, value UInt32, polygon Array(Array(Tuple(Float64, Float64)))') order by name"
549+
)
550+
assert "Can't find active replicas in cluster" in result

0 commit comments

Comments
 (0)