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/11/28 22:27:00 UTC

[jira] [Commented] (IMPALA-7893) Impala shell does not handle Ctrl+C correctly for a non-running query

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

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

Commit 96f976534837dde6d3fb87ea02019b67d9c3ea78 in impala's branch refs/heads/master from [~fredyw]
[ https://git-wip-us.apache.org/repos/asf?p=impala.git;h=96f9765 ]

IMPALA-7893: Correctly handle Ctrl+C for cancelling a non-running query

This patch fixes the issue with Ctrl+C handling for cancelling a
non-running query to behave similar to Linux shell.

Before (pressing Ctrl+C does not do anything):
[localhost:21000] default> select

After (pressing Ctrl+C cancels the query and starts a new prompt):
[localhost:21000] default> select^C
[localhost:21000] default>

Testing:
- Added a new cancellation test
- Ran all shell E2E tests

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


> Impala shell does not handle Ctrl+C correctly for a non-running query
> ---------------------------------------------------------------------
>
>                 Key: IMPALA-7893
>                 URL: https://issues.apache.org/jira/browse/IMPALA-7893
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Clients
>    Affects Versions: Impala 3.0, Impala 2.12.0
>            Reporter: Fredy Wijaya
>            Assignee: Fredy Wijaya
>            Priority: Minor
>             Fix For: Impala 3.2.0
>
>
> Impala uses Ctrl+C to cancel a running query, which works. However, running Ctrl+C for a non-running query does not work. Example:
> {noformat}
> [localhost:21000] default> abcde (press ctrl+c) --> this does not do anything
> {noformat}
> Compare this behavior to Linux shell.
> {noformat}
> $ abcde^C --> this cancel the statement and start a new one prompt
> $
> {noformat}



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