未验证 提交 6090a4e7 编写于 作者: Z zhuwenxing 提交者: GitHub

[skip e2e]Update the way of reconnection (#16970)

Signed-off-by: Nzhuwenxing <wenxing.zhu@zilliz.com>
上级 338edcd3
......@@ -69,4 +69,6 @@ def get_chaos_yamls():
def reconnect(connections, alias='default'):
"""trying to connect by connection alias"""
return connections.connect(alias=alias)
res = connections.get_connection_addr(alias)
connections.remove_connection(alias)
return connections.connect(alias, host=res["host"], port=res["port"])
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册