未验证 提交 fe8bfc37 编写于 作者: X xige-16 提交者: GitHub

Fix empty getQuerySegmentInfos results (#10667)

Signed-off-by: Nxige-16 <xi.ge@zilliz.com>
上级 a06dab29
......@@ -2162,6 +2162,11 @@ func (node *Proxy) GetQuerySegmentInfo(ctx context.Context, req *milvuspb.GetQue
resp.Status.Reason = err.Error()
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{
Base: &commonpb.MsgBase{
MsgType: commonpb.MsgType_SegmentInfo,
......@@ -2169,7 +2174,8 @@ func (node *Proxy) GetQuerySegmentInfo(ctx context.Context, req *milvuspb.GetQue
Timestamp: 0,
SourceID: Params.ProxyID,
},
SegmentIDs: segments,
CollectionID: collID,
SegmentIDs: segments,
})
if err != nil {
log.Error("Failed to get segment info from QueryCoord",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册