[skip ci] Modify the conditions for checking the existence of milvus (#9403)

Signed-off-by: wangting0128 <ting.wang@zilliz.com>
This commit is contained in:
wt 2021-10-07 18:03:15 +08:00 committed by GitHub
parent 4be169635d
commit 77c9a8daa1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -401,8 +401,13 @@ class MilvusClient(object):
i = 0
while i < timeout:
try:
row_count = self.count(collection_name=collection_name)
if row_count:
# row_count = self.count(collection_name=collection_name)
# if row_count:
# time.sleep(1)
# i = i + 1
# continue
res = self._milvus.has_collection(collection_name)
if res:
time.sleep(1)
i = i + 1
continue