Wait for ZK process to stop

This commit is contained in:
Antonio Andelic 2023-01-03 09:39:14 +00:00
parent e0b8fd528d
commit 4ccd828a44
2 changed files with 4 additions and 0 deletions

View File

@ -29,6 +29,8 @@ def start_zookeeper(node):
def stop_zookeeper(node):
node.exec_in_container(["bash", "-c", "/opt/zookeeper/bin/zkServer.sh stop"])
while node.get_process_pid("zookeeper") != None:
time.sleep(0.2)
def clear_zookeeper(node):

View File

@ -24,6 +24,8 @@ def start_zookeeper():
def stop_zookeeper():
node.exec_in_container(["bash", "-c", "/opt/zookeeper/bin/zkServer.sh stop"])
while node.get_process_pid("zookeeper") != None:
time.sleep(0.2)
def clear_zookeeper():