drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacques Nadeau (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DRILL-1378) Using CTRL-C to cancel a query and exit SQLLINE cancels query but causes SQLLINE shell to hang
Date Mon, 17 Nov 2014 01:17:37 GMT

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

Jacques Nadeau commented on DRILL-1378:
---------------------------------------

We need to update the sqlline integration so that Ctrl-c is accepted during prepare in addition
to execute to make this work correctly.

> Using CTRL-C to cancel a query and exit SQLLINE cancels query but causes SQLLINE shell
to hang
> ----------------------------------------------------------------------------------------------
>
>                 Key: DRILL-1378
>                 URL: https://issues.apache.org/jira/browse/DRILL-1378
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Client - CLI
>    Affects Versions: 0.4.0
>         Environment: MapR v3.1.1, RHEL 6.5
>            Reporter: Michael England
>            Assignee: Jason Altekruse
>            Priority: Blocker
>              Labels: cancel, ctrl-c, hang, query, sqlline
>             Fix For: 0.8.0
>
>
> When running a query (in this case a Drill query over a large Hive table), pressing CTRL+C
to cancel a query and exit the shell causes a cancellation message in sqlline.log but causes
the SQLLINE shell to hang. CTRL-Z then needs to be pressed and the SQLLINE process needs to
be killed manually. A CTRL+C keyboard interrupt should cancel the query and provide a new
empty query line in the shell. A further CTRL-C keyboard press should exit the SQLLINE shell.
> sqlline.log cancellation entry:
> 2014-09-05 14:16:13,852 [SIGINT handler] DEBUG o.a.drill.exec.client.DrillClient - Cancelling
query b0b36fa7-051e-484e-bb42-f57613401834
> 2014-09-05 14:16:13,858 [Client-1] DEBUG org.apache.drill.jdbc.DrillResultSet - Result
arrived QueryResultBatch [header=query_state: CANCELED
> query_id {
>   part1: -5714100739066935218
>   part2: -4953126752676210636
> }
> is_last_chunk: true
> , data=null]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message