mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
Fix delegator leaked (#25347)
Signed-off-by: yah01 <yang.cen@zilliz.com>
This commit is contained in:
parent
dd5f896dc8
commit
3d2283415f
@ -358,7 +358,7 @@ func (node *QueryNode) UnsubDmChannel(ctx context.Context, req *querypb.UnsubDmC
|
||||
return status, nil
|
||||
}
|
||||
|
||||
delegator, ok := node.delegators.Get(req.GetChannelName())
|
||||
delegator, ok := node.delegators.GetAndRemove(req.GetChannelName())
|
||||
if ok {
|
||||
// close the delegator first to block all coming query/search requests
|
||||
delegator.Close()
|
||||
@ -366,7 +366,6 @@ func (node *QueryNode) UnsubDmChannel(ctx context.Context, req *querypb.UnsubDmC
|
||||
node.pipelineManager.Remove(req.GetChannelName())
|
||||
node.manager.Segment.RemoveBy(segments.WithChannel(req.GetChannelName()))
|
||||
node.tSafeManager.Remove(req.GetChannelName())
|
||||
node.delegators.GetAndRemove(req.GetChannelName())
|
||||
}
|
||||
|
||||
log.Info("unsubscribed channel")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user