未验证 提交 9ca8f280 编写于 作者: G Gao 提交者: GitHub

Fix missing totalChannelNum bug (#26295)

Signed-off-by: Nchasingegg <chao.gao@zilliz.com>
上级 48422dd4
......@@ -821,6 +821,7 @@ func (node *QueryNode) Search(ctx context.Context, req *querypb.SearchRequest) (
SegmentIDs: req.SegmentIDs,
FromShardLeader: req.FromShardLeader,
Scope: req.Scope,
TotalChannelNum: req.TotalChannelNum,
}
runningGp.Go(func() error {
......
......@@ -1091,6 +1091,7 @@ func (suite *ServiceSuite) TestSearch_Normal() {
Req: creq,
FromShardLeader: false,
DmlChannels: []string{suite.vchannel},
TotalChannelNum: 2,
}
suite.NoError(err)
......@@ -1117,6 +1118,7 @@ func (suite *ServiceSuite) TestSearch_Concurrent() {
Req: creq,
FromShardLeader: false,
DmlChannels: []string{suite.vchannel},
TotalChannelNum: 2,
}
suite.NoError(err)
return suite.node.Search(ctx, req)
......@@ -1142,6 +1144,7 @@ func (suite *ServiceSuite) TestSearch_Failed() {
Req: creq,
FromShardLeader: false,
DmlChannels: []string{suite.vchannel},
TotalChannelNum: 2,
}
suite.NoError(err)
......@@ -1201,6 +1204,7 @@ func (suite *ServiceSuite) TestSearchSegments_Normal() {
Req: creq,
FromShardLeader: true,
DmlChannels: []string{suite.vchannel},
TotalChannelNum: 2,
}
suite.NoError(err)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册