mirror of https://github.com/milvus-io/milvus.git
[skip ci] Refine the log of GetPersistentSegmentInfo (#12234)
Signed-off-by: dragondriver <jiquan.long@zilliz.com>pull/12220/head
parent
5b9e58bb78
commit
653369ee63
|
@ -2167,11 +2167,12 @@ func (node *Proxy) GetPersistentSegmentInfo(ctx context.Context, req *milvuspb.G
|
|||
},
|
||||
SegmentIDs: segments,
|
||||
})
|
||||
log.Debug("GetPersistentSegmentInfo ", zap.Any("infos", infoResp.Infos), zap.Any("status", infoResp.Status))
|
||||
if err != nil {
|
||||
log.Debug("GetPersistentSegmentInfo fail", zap.Error(err))
|
||||
resp.Status.Reason = fmt.Errorf("dataCoord:GetSegmentInfo, err:%w", err).Error()
|
||||
return resp, nil
|
||||
}
|
||||
log.Debug("GetPersistentSegmentInfo ", zap.Int("len(infos)", len(infoResp.Infos)), zap.Any("status", infoResp.Status))
|
||||
if infoResp.Status.ErrorCode != commonpb.ErrorCode_Success {
|
||||
resp.Status.Reason = infoResp.Status.Reason
|
||||
return resp, nil
|
||||
|
|
Loading…
Reference in New Issue