mirror of https://github.com/milvus-io/milvus.git
Fix segments info in drop virtual channel request is not set (#17641)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/17646/head
parent
0bb415f593
commit
12b3a29db8
internal/datanode
|
@ -679,6 +679,13 @@ func dropVirtualChannelFunc(dsService *dataSyncService, opts ...retry.Option) fl
|
||||||
segment.StartPosition = pos.GetStartPosition()
|
segment.StartPosition = pos.GetStartPosition()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// assign segments to request
|
||||||
|
segments := make([]*datapb.DropVirtualChannelSegment, 0, len(segmentPack))
|
||||||
|
for _, segment := range segmentPack {
|
||||||
|
segments = append(segments, segment)
|
||||||
|
}
|
||||||
|
req.Segments = segments
|
||||||
|
|
||||||
err := retry.Do(context.Background(), func() error {
|
err := retry.Do(context.Background(), func() error {
|
||||||
rsp, err := dsService.dataCoord.DropVirtualChannel(context.Background(), req)
|
rsp, err := dsService.dataCoord.DropVirtualChannel(context.Background(), req)
|
||||||
// should be network issue, return error and retry
|
// should be network issue, return error and retry
|
||||||
|
|
Loading…
Reference in New Issue