mirror of https://github.com/milvus-io/milvus.git
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
parent
9d9cdfc0dd
commit
36accde034
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue