From e0562101f5a53be250c85757e085ea9502ef0221 Mon Sep 17 00:00:00 2001 From: BossZou <40255591+BossZou@users.noreply.github.com> Date: Thu, 25 Feb 2021 19:15:23 +0800 Subject: [PATCH] Fix mishards probe test bug (#4744) Signed-off-by: yinghao.zou --- CHANGELOG.md | 1 + shards/all_in_one/probe_test.py | 11 +++-------- shards/all_in_one_with_mysql/probe_test.py | 11 +++-------- 3 files changed, 7 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 910431927f..4327750738 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ Please mark all change in change log and use the issue from GitHub # Milvus 1.0.0-beta (TBD) ## Bug +- \#4739 Fix mishards probe test problem ## Feature - \#3977 Support logging to stdout diff --git a/shards/all_in_one/probe_test.py b/shards/all_in_one/probe_test.py index 6250465910..93b030436b 100644 --- a/shards/all_in_one/probe_test.py +++ b/shards/all_in_one/probe_test.py @@ -6,15 +6,10 @@ ENDC = '' def test(host='127.0.0.1', port=19531): - client = Milvus() try: - status = client.connect(host=host, port=port) - if status.OK(): - print('{}Pass: Connected{}'.format(GREEN, ENDC)) - return 0 - else: - print('{}Error: {}{}'.format(RED, status, ENDC)) - return 1 + client = Milvus(host=host, port=port) + print('{}Pass: Connected{}'.format(GREEN, ENDC)) + return 0 except Exception as exc: print('{}Error: {}{}'.format(RED, exc, ENDC)) return 1 diff --git a/shards/all_in_one_with_mysql/probe_test.py b/shards/all_in_one_with_mysql/probe_test.py index 6250465910..466cc23fb4 100644 --- a/shards/all_in_one_with_mysql/probe_test.py +++ b/shards/all_in_one_with_mysql/probe_test.py @@ -6,15 +6,10 @@ ENDC = '' def test(host='127.0.0.1', port=19531): - client = Milvus() try: - status = client.connect(host=host, port=port) - if status.OK(): - print('{}Pass: Connected{}'.format(GREEN, ENDC)) - return 0 - else: - print('{}Error: {}{}'.format(RED, status, ENDC)) - return 1 + client = Milvus() + print('{}Pass: Connected{}'.format(GREEN, ENDC)) + return 0 except Exception as exc: print('{}Error: {}{}'.format(RED, exc, ENDC)) return 1