mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
fix: dead lock if query node crash during shard client init (#37354)
issue: #37115 Signed-off-by: Wei Liu <wei.liu@zilliz.com>
This commit is contained in:
parent
28fd217e27
commit
eb712f0db9
@ -47,6 +47,7 @@ func (n *shardClient) getClient(ctx context.Context) (types.QueryNodeClient, err
|
||||
n.Lock()
|
||||
if !n.initialized.Load() {
|
||||
if err := n.initClients(); err != nil {
|
||||
n.Unlock()
|
||||
return nil, err
|
||||
}
|
||||
n.initialized.Store(true)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user