mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
MaterializedMySQL: Fix gtid_after_attach_test to retry on detach
This commit is contained in:
parent
306e739daa
commit
ba94cd2ef7
@ -3379,7 +3379,7 @@ def gtid_after_attach_test(clickhouse_node, mysql_node, replication):
|
||||
f"CREATE TABLE {db}.t(id INT PRIMARY KEY AUTO_INCREMENT, score int, create_time DATETIME DEFAULT NOW())"
|
||||
)
|
||||
|
||||
db_count = 6
|
||||
db_count = 4
|
||||
for i in range(db_count):
|
||||
replication.create_db_ch(
|
||||
f"{db}{i}",
|
||||
@ -3392,7 +3392,11 @@ def gtid_after_attach_test(clickhouse_node, mysql_node, replication):
|
||||
"t\n",
|
||||
)
|
||||
for i in range(int(db_count / 2)):
|
||||
clickhouse_node.query(f"DETACH DATABASE {db}{i}")
|
||||
check_query(
|
||||
clickhouse_node,
|
||||
f"DETACH DATABASE {db}{i}",
|
||||
"",
|
||||
)
|
||||
|
||||
mysql_node.query(f"USE {db}")
|
||||
rows = 10000
|
||||
|
Loading…
Reference in New Issue
Block a user