- Open a random listening port using netcat (nc -l 1234).
- When I connect through impala-shell to this port, it hangs in the connect call. I think this is similar to impala-shell connecting a load balancer port and the connection between LB and impala going down.
- Connect in impala-shell also calls PingImpalaService which does more than a normal TCP connect and can hang. Since there is no timeout set on this socket, connect can hang in this call.
- We should set a timeout on the client socket to prevent hangs during the connect phase of session creation.