mirror of https://github.com/milvus-io/milvus.git
[skip ci] fix mishards error when invoking load_collection (#4569)
Signed-off-by: yinghao.zou <yinghao.zou@zilliz.com>pull/4581/head
parent
9088b2c711
commit
4eda95e63b
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue