Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-9398

When pressing Ctrl+C the content of the shell history gets doubled

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • ghx-label-10

    Description

      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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            tmate Tamas Mate
            tadam Adam Tamas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment