未验证 提交 3d228341 编写于 作者: Y yah01 提交者: GitHub

Fix delegator leaked (#25347)

Signed-off-by: Nyah01 <yang.cen@zilliz.com>
上级 dd5f896d
......@@ -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")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册