Adam Tamas created IMPALA-9398:
----------------------------------

             Summary: 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


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)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to