Saurabh Katiyal created IMPALA-13266:
----------------------------------------

             Summary: Inconsistency in impala-shell output on ctrl+c with 
different protocols
                 Key: IMPALA-13266
                 URL: https://issues.apache.org/jira/browse/IMPALA-13266
             Project: IMPALA
          Issue Type: Bug
            Reporter: Saurabh Katiyal
         Attachments: impala-shell_inconsistency

When we cancel any running query from Impala-shell with keyboard interrupt 
(ctrl+c) , output generated by Impala-shell varies based on protocol used to 
connect. 

Below are three output :
1. with default protocol (-- protocol not defined in impala-shell command )

{code:java}
[localhost:21050] default> select sleep(30000);
Query: select sleep(30000)
Query progress can be monitored at: 
http://localhost:25000/query_plan?query_id=c344483a02f7eb63:e1e387f600000000
^C Cancelling Query
Opened TCP connection to localhost:21050
Caught exception [Errno 4] Interrupted system call, type=<class 'socket.error'> 
in FetchResults.
Cancelling Query
Warning: close session RPC failed: , <class 
'shell_exceptions.QueryCancelledByShellException'>
Opened TCP connection to localhost:21050
{code}

2. with --protocol=hs2-http

{code:java}
[localhost:28000] default> select sleep(30000);
Query: select sleep(30000)
Query submitted at: 2024-08-01 11:24:59 (Coordinator: http://localhost:25000)
Query progress can be monitored at: 
http://localhost:25000/query_plan?query_id=30450389ffb036fd:a477bae200000000
^C Cancelling Query
Warning: --connect_timeout_ms is currently ignored with HTTP transport.
Opened TCP connection to localhost:28000
[localhost:28000] default> 
[localhost:28000] default> exit;
{code}

3. impala-shell --protocol=beeswax

{code:java}
[localhost:21000] default> select sleep(30000);
Query: select sleep(30000)
Query submitted at: 2024-08-01 11:25:26 (Coordinator: http://localhost:25000)
Query progress can be monitored at: 
http://localhost:25000/query_plan?query_id=8647fd55666bcba4:25eb07f800000000
^C Cancelling Query
Opened TCP connection to localhost:21000
Failed to reconnect and close (try 1/3): ERROR: Invalid or unknown query 
handle: 8647fd55666bcba4:25eb07f800000000.
 Cancelling Query
Opened TCP connection to localhost:21000
Failed to reconnect and close (try 2/3): ERROR: Invalid or unknown query 
handle: 8647fd55666bcba4:25eb07f800000000.
 Cancelling Query
Opened TCP connection to localhost:21000
Failed to reconnect and close (try 3/3): ERROR: Invalid or unknown query 
handle: 8647fd55666bcba4:25eb07f800000000.
 Cancelling Query
Opened TCP connection to localhost:21000
[localhost:21000] default> 

{code}
Attached complete impala-shell output 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to