mirror of https://github.com/milvus-io/milvus.git
fix: dead lock if query node crash during shard client init (#37354)
issue: #37115 Signed-off-by: Wei Liu <wei.liu@zilliz.com>pull/37435/head
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…
Reference in New Issue