Skip to content

Commit 2bd1c21

Browse files
committed
Add test
1 parent c5f6faa commit 2bd1c21

File tree

1 file changed

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

1 file changed

+12
-0
lines changed

tests/integration/test_s3_cluster/test.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import os
44
import shutil
55
import time
6+
import subprocess
67
from email.errors import HeaderParseError
78

89
import pytest
@@ -537,3 +538,14 @@ def test_cluster_default_expression(started_cluster):
537538
)
538539

539540
assert result == expected_result
541+
542+
543+
def test_dead_cluster(started_cluster):
544+
node = started_cluster.instances["s0_1_0"]
545+
546+
with started_cluster.pause_container("s0_0_0"):
547+
with started_cluster.pause_container("s0_0_1"):
548+
result = node.query_and_get_error(
549+
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"
550+
)
551+
assert "Can't find active replicas in cluster" in result

0 commit comments

Comments
 (0)