Skip to content

Commit ff493ca

Browse files
Flaky flaky
1 parent bac5310 commit ff493ca

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/integration/test_replicated_database/test_settings_recover_lost_replica.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,17 @@ def started_cluster():
6363

6464
def test_query_settings_in_create_recover_lost_replica(started_cluster):
6565
old_node = started_cluster.instances["old_node"]
66-
old_node.query("DROP DATABASE IF EXISTS replicated_lost_replica")
66+
old_node.query("DROP DATABASE IF EXISTS replicated_lost_replica SYNC")
6767
old_node.query(
6868
"CREATE DATABASE replicated_lost_replica ENGINE = Replicated('/test/replicated_lost_replica', 'shard1', 'replica' || '1');"
6969
)
70+
old_node.query("DROP TABLE IF EXISTS replicated_lost_replica.b")
7071
old_node.query(
7172
f"""CREATE TABLE replicated_lost_replica.b Engine = S3('http://minio1:9001/root/data/clickhouse/part1.csv', 'minio', '{minio_secret_key}') SETTINGS s3_create_new_file_on_insert = 1;"""
7273
)
7374

7475
new_node = started_cluster.instances["new_node"]
75-
new_node.query("DROP DATABASE IF EXISTS replicated_lost_replica")
76+
new_node.query("DROP DATABASE IF EXISTS replicated_lost_replica SYNC")
7677
# Adding new replica will trigger the `recoverLostReplica` method.
7778
new_node.query(
7879
"CREATE DATABASE replicated_lost_replica ENGINE = Replicated('/test/replicated_lost_replica', 'shard1', 'replica' || '2');"

0 commit comments

Comments
 (0)