mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-02-02 01:06:41 +08:00
fix: proxy ctx cancel before revoking session (#31595)
issue: #31219 pr: #31596 Signed-off-by: jaime <yun.zhang@zilliz.com>
This commit is contained in:
parent
a6fe96f20a
commit
8713765f4d
@ -419,8 +419,6 @@ func (node *Proxy) Start() error {
|
||||
|
||||
// Stop stops a proxy node.
|
||||
func (node *Proxy) Stop() error {
|
||||
node.cancel()
|
||||
|
||||
if node.rowIDAllocator != nil {
|
||||
node.rowIDAllocator.Close()
|
||||
log.Info("close id allocator", zap.String("role", typeutil.ProxyRole))
|
||||
@ -444,8 +442,6 @@ func (node *Proxy) Stop() error {
|
||||
log.Info("close channels time ticker", zap.String("role", typeutil.ProxyRole))
|
||||
}
|
||||
|
||||
node.wg.Wait()
|
||||
|
||||
for _, cb := range node.closeCallbacks {
|
||||
cb()
|
||||
}
|
||||
@ -470,6 +466,9 @@ func (node *Proxy) Stop() error {
|
||||
node.resourceManager.Close()
|
||||
}
|
||||
|
||||
node.cancel()
|
||||
node.wg.Wait()
|
||||
|
||||
// https://github.com/milvus-io/milvus/issues/12282
|
||||
node.UpdateStateCode(commonpb.StateCode_Abnormal)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user