mirror of https://github.com/milvus-io/milvus.git
Fix empty getQuerySegmentInfos results (#10667)
Signed-off-by: xige-16 <xi.ge@zilliz.com>pull/10689/head
parent
a06dab29d7
commit
fe8bfc3788
|
@ -2162,6 +2162,11 @@ func (node *Proxy) GetQuerySegmentInfo(ctx context.Context, req *milvuspb.GetQue
|
||||||
resp.Status.Reason = err.Error()
|
resp.Status.Reason = err.Error()
|
||||||
return resp, nil
|
return resp, nil
|
||||||
}
|
}
|
||||||
|
collID, err := globalMetaCache.GetCollectionID(ctx, req.CollectionName)
|
||||||
|
if err != nil {
|
||||||
|
resp.Status.Reason = err.Error()
|
||||||
|
return resp, nil
|
||||||
|
}
|
||||||
infoResp, err := node.queryCoord.GetSegmentInfo(ctx, &querypb.GetSegmentInfoRequest{
|
infoResp, err := node.queryCoord.GetSegmentInfo(ctx, &querypb.GetSegmentInfoRequest{
|
||||||
Base: &commonpb.MsgBase{
|
Base: &commonpb.MsgBase{
|
||||||
MsgType: commonpb.MsgType_SegmentInfo,
|
MsgType: commonpb.MsgType_SegmentInfo,
|
||||||
|
@ -2169,7 +2174,8 @@ func (node *Proxy) GetQuerySegmentInfo(ctx context.Context, req *milvuspb.GetQue
|
||||||
Timestamp: 0,
|
Timestamp: 0,
|
||||||
SourceID: Params.ProxyID,
|
SourceID: Params.ProxyID,
|
||||||
},
|
},
|
||||||
SegmentIDs: segments,
|
CollectionID: collID,
|
||||||
|
SegmentIDs: segments,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error("Failed to get segment info from QueryCoord",
|
log.Error("Failed to get segment info from QueryCoord",
|
||||||
|
|
Loading…
Reference in New Issue