mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 11:02:08 +00:00
Update test.py
This commit is contained in:
parent
b99350b50d
commit
652de7c9b0
@ -320,9 +320,15 @@ class Task_self_copy:
|
|||||||
def execute_task(started_cluster, task, cmd_options):
|
def execute_task(started_cluster, task, cmd_options):
|
||||||
task.start()
|
task.start()
|
||||||
|
|
||||||
zk = cluster.get_kazoo_client('zoo1')
|
zk = started_cluster.get_kazoo_client('zoo1')
|
||||||
print("Use ZooKeeper server: {}:{}".format(zk.hosts[0][0], zk.hosts[0][1]))
|
print("Use ZooKeeper server: {}:{}".format(zk.hosts[0][0], zk.hosts[0][1]))
|
||||||
|
|
||||||
|
|
||||||
|
try:
|
||||||
|
zk.delete("/clickhouse-copier", recursive=True)
|
||||||
|
except kazoo.exceptions.NoNodeError:
|
||||||
|
print("No node /clickhouse-copier. It is Ok in first test.")
|
||||||
|
|
||||||
# Run cluster-copier processes on each node
|
# Run cluster-copier processes on each node
|
||||||
docker_api = started_cluster.docker_client.api
|
docker_api = started_cluster.docker_client.api
|
||||||
copiers_exec_ids = []
|
copiers_exec_ids = []
|
||||||
|
Loading…
Reference in New Issue
Block a user