[ 
https://issues.apache.org/jira/browse/IMPALA-9028?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joe McDonnell resolved IMPALA-9028.
-----------------------------------
    Fix Version/s: Impala 3.4.0
       Resolution: Fixed

> Impala shell should not try to reconnect when quitting
> ------------------------------------------------------
>
>                 Key: IMPALA-9028
>                 URL: https://issues.apache.org/jira/browse/IMPALA-9028
>             Project: IMPALA
>          Issue Type: Improvement
>          Components: Clients
>    Affects Versions: Impala 3.4.0
>            Reporter: Joe McDonnell
>            Assignee: Joe McDonnell
>            Priority: Major
>              Labels: shell
>             Fix For: Impala 3.4.0
>
>
> When the impala-shell is not connected, it will try to reconnect when 
> executing a new command (in precmd).
> [https://github.com/apache/impala/blob/master/shell/impala_shell.py#L600-L603]
> {code:java}
> if not self.imp_client.is_connected():
>    print_to_stderr("Connection lost, reconnecting...")
>    self._connect()
>    self._validate_database(immediately=True)
> {code}
> This doesn't make sense if the user is quitting the shell (by typing 'quit', 
> 'exit', or hitting Ctrl-D). It should skip the reconnect in this case.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to