Skip to content

Commit

Permalink
Fix missing totalChannelNum bug (#26295)
Browse files Browse the repository at this point in the history
Signed-off-by: chasingegg <chao.gao@zilliz.com>
  • Loading branch information
chasingegg authored Aug 11, 2023
1 parent 48422dd commit 9ca8f28
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/querynodev2/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 4 additions & 0 deletions internal/querynodev2/services_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1091,6 +1091,7 @@ func (suite *ServiceSuite) TestSearch_Normal() {
Req: creq,
FromShardLeader: false,
DmlChannels: []string{suite.vchannel},
TotalChannelNum: 2,
}
suite.NoError(err)

Expand All @@ -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)
Expand All @@ -1142,6 +1144,7 @@ func (suite *ServiceSuite) TestSearch_Failed() {
Req: creq,
FromShardLeader: false,
DmlChannels: []string{suite.vchannel},
TotalChannelNum: 2,
}
suite.NoError(err)

Expand Down Expand Up @@ -1201,6 +1204,7 @@ func (suite *ServiceSuite) TestSearchSegments_Normal() {
Req: creq,
FromShardLeader: true,
DmlChannels: []string{suite.vchannel},
TotalChannelNum: 2,
}
suite.NoError(err)

Expand Down

0 comments on commit 9ca8f28

Please sign in to comment.