You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Tamas Mate (Jira)" <ji...@apache.org> on 2020/05/11 14:03:00 UTC

[jira] [Resolved] (IMPALA-9398) When pressing Ctrl+C the content of the shell history gets doubled

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

Tamas Mate resolved IMPALA-9398.
--------------------------------
    Fix Version/s: Impala 4.0
       Resolution: Resolved

> When pressing Ctrl+C the content of the shell history gets doubled
> ------------------------------------------------------------------
>
>                 Key: IMPALA-9398
>                 URL: https://issues.apache.org/jira/browse/IMPALA-9398
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Clients
>    Affects Versions: Impala 3.3.0
>            Reporter: Adam Tamas
>            Assignee: Tamas Mate
>            Priority: Trivial
>              Labels: impala-shell, ramp-up
>             Fix For: Impala 4.0
>
>
> If Ctrl+C was pressed in the impala-shell, the content of the ~/.impalahistory got copied into the end of the file for each instance the Ctrl+C was pressed.
> The new queries written while the shell was open is not duplicated and the file is only updated after the impala-shell was closed.
> Example:
> $ rm ~/.impalahistory
> $ impala-shell.sh
> impala> select 1; 
> impala> select 2; 
> impala> quit;
> $ cat -n ~/.impalahistory
>  1 select 1;
>  2 select 2;
>  3 quit;
> $ impala-shell.sh
> impala> ^C
> impala> quit;
> $ cat -n ~/.impalahistory
>  1 select 1;
>  2 select 2;
>  3 quit;
>  4 select 1;
>  5 select 2;
>  6 quit;
> The second impala-shell session, Ctrl-C doubled all the history entries.



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