mirror of https://github.com/milvus-io/milvus.git
fix: proxy ctx cancel before revoking session (#31596)
issue: #31219 Signed-off-by: jaime <yun.zhang@zilliz.com>pull/31616/head
parent
659ad81ab7
commit
248c923e59
|
@ -426,8 +426,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))
|
||||
|
@ -451,8 +449,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()
|
||||
}
|
||||
|
@ -477,6 +473,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…
Reference in New Issue