[skip ci] Remove check for topk in mishards (fix #3709) (#3710)

Signed-off-by: yinghao.zou <yinghao.zou@zilliz.com>
pull/3711/head
BossZou 2020-09-12 22:27:41 +08:00 committed by GitHub
parent 0af3804974
commit 2737c3fbdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -6,6 +6,7 @@ Please mark all change in change log and use the issue from GitHub
## Bug
- \#3536 Release search task in time to avoid excessive memory usage
- \#3656 Fix to check search params 'nprobe' of BIN_IVF_FLAT
- \#3709 Remove check for topk in mishards
## Feature
- \#3213 Allow users to specify a distance type at runtime for Flat index

View File

@ -317,9 +317,9 @@ class ServiceHandler(milvus_pb2_grpc.MilvusServiceServicer):
# raise exceptions.InvalidArgumentError(
# message='Invalid nprobe: {}'.format(nprobe), metadata=metadata)
if topk > self.MAX_TOPK or topk <= 0:
raise exceptions.InvalidTopKError(
message='Invalid topk: {}'.format(topk), metadata=metadata)
# if topk > self.MAX_TOPK or topk <= 0:
# raise exceptions.InvalidTopKError(
# message='Invalid topk: {}'.format(topk), metadata=metadata)
collection_meta = self.collection_meta.get(collection_name, None)