Skip to content

Commit

Permalink
fix: dead lock if query node crash during shard client init (#37354)
Browse files Browse the repository at this point in the history
issue: #37115

Signed-off-by: Wei Liu <[email protected]>
  • Loading branch information
weiliu1031 authored Nov 5, 2024
1 parent 28fd217 commit eb712f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/proxy/shard_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit eb712f0

Please sign in to comment.