You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Jason Altekruse (JIRA)" <ji...@apache.org> on 2014/09/27 02:18:34 UTC

[jira] [Commented] (DRILL-1327) Any subsequent query may hung in sqlline after you cancel one query in the same session

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

Jason Altekruse commented on DRILL-1327:
----------------------------------------

I was unable to re-produce this on my machine. Are you running sqlline in local mode? Could you possibly try to re-produce this using a build of the latest master?

> Any subsequent query may hung in sqlline after you cancel one query in the same session
> ---------------------------------------------------------------------------------------
>
>                 Key: DRILL-1327
>                 URL: https://issues.apache.org/jira/browse/DRILL-1327
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Query Planning & Optimization
>    Affects Versions: 0.4.0
>         Environment: MapR 3.1.1
> Drill 0.4.0
>            Reporter: Hao Zhu
>            Priority: Critical
>             Fix For: 0.6.0
>
>         Attachments: drillbit.log
>
>
> This is another issue related to DRILL-1326.
> If we cancel a query in sqlline, subsequent query may hung.
> I can reproduce it almost every time.
> How to reproduce:
> 1. Logon sqlline, run below SQL:
> {code}
> select *
>  from cp.`employee.json` a, cp.`employee.json` b
>  where a.position_id=b.position_id ;
> {code}
> 2. When it is printing the results for about 3 seconds, type "ctrl-c" to stop it.
> 3. Then any subsequent query will hung.
> ===============================
> For example,
> {code}
> | 110         | Josie Underwood | Josie      | Underwood  | 15          | Store Permanent Checker | 7          | 15            | 1914-02-02 | 1996-01-01 00:00:00.0 | 8200.0     | 101       |
> | 110         | Josie Underwood | Josie      | Underwood  | 15          | Store Permanent Checker | 7          | 15            | 1914-02-02 | 1996-01-01 00:00:00.0 | 8200.0     | 101       |
> | 110         | Josie Underwood | Josie      | Underwood  | 15          | Store Permanent Checker | 7          | 15            | 1914-02-02 | 1996-01-01 00:00:00.0 | 8200.0     | 101       |
> | 110         | Josie Underwood | Josie      | Underwood  | 15          | Store Permanent Checker | 7          | 15            | 1914-02-02 | 1996-01-01 00:00:00.0 | 8200.0     | 101       |
> +-------------+------------+------------+------------+-------------+----------------+------------+---------------+------------+------------+------------+---------------+-----------------+--+
> 11,744 rows selected (2.879 seconds)
> 0: jdbc:drill:zk=node1.xxx.com:5181,node3.>
> Command canceled.
> 0: jdbc:drill:zk=node1.xxx.com:5181,node3.>
> Command canceled.
> 0: jdbc:drill:zk=node1.xxx.com:5181,node3.>
> 0: jdbc:drill:zk=node1.xxx.com:5181,node3.> SELECT TABLE_SCHEMA, TABLE_NAME, TABLE_TYPE
> . . . . . . . . . . . . . . . . . . . . . . .> FROM INFORMATION_SCHEMA.`TABLES`
> . . . . . . . . . . . . . . . . . . . . . . .> ORDER BY TABLE_NAME DESC;
> {code}
> In the end, we have "ctrl-z" and "kill -9 %1" to exit the sqlline.
> After that, the SQL become "Running Queries" forever.
> We need to fix this because it looks like the sqlline is not stable.



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