[skip ci] fix mishards error when invoking load_collection (#4569)

Signed-off-by: yinghao.zou <yinghao.zou@zilliz.com>
pull/4581/head
BossZou 2021-01-05 17:43:50 +08:00 committed by GitHub
parent 9088b2c711
commit 4eda95e63b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 5 deletions

View File

@ -571,11 +571,14 @@ class ServiceHandler(milvus_pb2_grpc.MilvusServiceServicer):
@mark_grpc_method
def PreloadCollection(self, request, context):
_collection_name, _partition_tags = Parser.parse_proto_PreloadCollectionParam(request)
_status, _pack = Parser.parse_proto_PreloadCollectionParam(request)
if not _status.OK():
return status_pb2.Status(error_code=_status.code,
reason=_status.message)
_collection_name, _partition_tags = _pack
# if not _status.OK():
# return status_pb2.Status(error_code=_status.code,
# reason=_status.message)
logger.info('PreloadCollection {} | {}'.format(_collection_name, _partition_tags))
_status = self._preload_collection(_collection_name, _partition_tags)
return status_pb2.Status(error_code=_status.code,

View File

@ -15,7 +15,7 @@ pyasn1==0.4.7
pyasn1-modules==0.2.6
pylint==2.5.0
#pymilvus==0.2.14
pymilvus-test==0.3.35
pymilvus-test==0.3.37
pyparsing==2.4.0
pytest==4.6.3
pytest-level==0.1.1