Skip to content

Commit

Permalink
Merge branch 'main' into feature/apis/add-flush-api
Browse files Browse the repository at this point in the history
  • Loading branch information
kpango authored Jan 17, 2023
2 parents f655811 + fd86b5c commit 6c490e6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/net/grpc/pool/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -547,9 +547,12 @@ func isHealthy(conn *ClientConn) bool {
switch state {
case connectivity.Ready:
return true
case connectivity.Idle, connectivity.Connecting:
case connectivity.Connecting:
log.Debugf("grpc target %s's connection status will be Ready soon:\tstatus: %s", conn.Target(), state.String())
return true
case connectivity.Idle:
log.Debugf("grpc target %s's connection status is waiting for target:\tstatus: %s", conn.Target(), state.String())
return false
case connectivity.Shutdown, connectivity.TransientFailure:
log.Errorf("grpc target %s's connection status is unhealthy:\tstatus: %s", conn.Target(), state.String())
return false
Expand Down

0 comments on commit 6c490e6

Please sign in to comment.