Fix wrong msg when load failed (#19884)

Signed-off-by: xige-16 <xi.ge@zilliz.com>

Signed-off-by: xige-16 <xi.ge@zilliz.com>
pull/19943/head
xige-16 2022-10-20 19:55:27 +08:00 committed by GitHub
parent 9d9cdfc0dd
commit 36accde034
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -1786,6 +1786,11 @@ func (node *Proxy) getCollectionProgress(ctx context.Context, request *milvuspb.
if err != nil {
return 0, err
}
if resp.Status.ErrorCode != commonpb.ErrorCode_Success {
return 0, errors.New(resp.Status.Reason)
}
if len(resp.InMemoryPercentages) == 0 {
return 0, errors.New("fail to show collections from the querycoord, no data")
}