You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2018/10/18 21:33:00 UTC

[jira] [Commented] (IMPALA-7555) impala-shell can hang in connect in certain cases

    [ https://issues.apache.org/jira/browse/IMPALA-7555?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16655905#comment-16655905 ] 

ASF subversion and git services commented on IMPALA-7555:
---------------------------------------------------------

Commit 2fb8ebaef2beecd511e963fadbb41cbb11add138 in impala's branch refs/heads/master from aphadke
[ https://git-wip-us.apache.org/repos/asf?p=impala.git;h=2fb8eba ]

IMPALA-7555: Set socket timeout in impala-shell

impala-shell does not set any socket timeout while connecting to the
impala server. This change sets a timeout on the socket before
connecting and unsets it back after successfully connecting. The default
timeout on this socket is 5 sec.
Usage: impala-shell --client_connect_timeout=<value in ms>

Testing:
1. Added a test where I create a random listening socket.
impala-shell (with ssl enabled) connects to this socket and
times out after 2 sec.

2. Created a kerberized impala cluster with ssl enabled and
connected to the impalad using an openssl client (block the
beeswax server thread to accept new connection) -

E.g. - openssl s_client -connect <IP Addr>:21000
Used impala-shell to connect to the same impalad later.
impala-shell timed out after the default of 5 sec.I verified
it manually.

Change-Id: I130fc47f7a83f591918d6842634b4e5787d00813
Reviewed-on: http://gerrit.cloudera.org:8080/11540
Reviewed-by: Impala Public Jenkins <im...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>


> impala-shell can hang in connect in certain cases
> -------------------------------------------------
>
>                 Key: IMPALA-7555
>                 URL: https://issues.apache.org/jira/browse/IMPALA-7555
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Clients
>    Affects Versions: Impala 3.1.0
>            Reporter: Anuj Phadke
>            Assignee: Anuj Phadke
>            Priority: Major
>
> # 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org