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

Andrew Sherman commented on IMPALA-8112:
----------------------------------------

>From the coordinator log the query fails before the test sends the cancel() 
>request.
The first cancel(), caused by the failure, updates the status in 
ClientRequestState to be the kudu failure.
The second cancel(), from the test, does not update the status in 
ClientRequestState as the status was already non-OK.
The tests fetch_restults, which had been blocking, raises a 
RaiseBeeswaxException with the text of the status from ClientRequestState 

So the test failed because of the unexpected kudu failure.

The test and server logic seem correct.

> test_cancel_select with debug action failed with unexpected error
> -----------------------------------------------------------------
>
>                 Key: IMPALA-8112
>                 URL: https://issues.apache.org/jira/browse/IMPALA-8112
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Backend
>    Affects Versions: Impala 3.2.0
>            Reporter: Michael Brown
>            Assignee: Andrew Sherman
>            Priority: Critical
>              Labels: flaky
>
> Stacktrace
> {noformat}
> query_test/test_cancellation.py:241: in test_cancel_select
>     self.execute_cancel_test(vector)
> query_test/test_cancellation.py:213: in execute_cancel_test
>     assert 'Cancelled' in str(thread.fetch_results_error)
> E   assert 'Cancelled' in "ImpalaBeeswaxException:\n INNER EXCEPTION: <class 
> 'beeswaxd.ttypes.BeeswaxException'>\n MESSAGE: Unable to open Kudu table: 
> Network error: recv error from 0.0.0.0:0: Transport endpoint is not connected 
> (error 107)\n"
> E    +  where "ImpalaBeeswaxException:\n INNER EXCEPTION: <class 
> 'beeswaxd.ttypes.BeeswaxException'>\n MESSAGE: Unable to open Kudu table: 
> Network error: recv error from 0.0.0.0:0: Transport endpoint is not connected 
> (error 107)\n" = str(ImpalaBeeswaxException())
> E    +    where ImpalaBeeswaxException() = <Thread(Thread-4, stopped 
> 140481071658752)>.fetch_results_error
> {noformat}
> Standard Error
> {noformat}
> SET 
> client_identifier=query_test/test_cancellation.py::TestCancellationParallel::()::test_cancel_select[protocol:beeswax|table_format:kudu/none|exec_option:{'batch_size':0;'num_nodes':0;'disable_codegen_rows_threshold':0;'disable_codegen':False;'abort_on_error':1;'debug_action;
> -- executing against localhost:21000
> use tpch_kudu;
> -- 2019-01-18 17:50:03,100 INFO     MainThread: Started query 
> 4e4b3ab4cbbbbc7d:11efc3f500000000
> SET 
> client_identifier=query_test/test_cancellation.py::TestCancellationParallel::()::test_cancel_select[protocol:beeswax|table_format:kudu/none|exec_option:{'batch_size':0;'num_nodes':0;'disable_codegen_rows_threshold':0;'disable_codegen':False;'abort_on_error':1;'debug_action;
> SET batch_size=0;
> SET num_nodes=0;
> SET disable_codegen_rows_threshold=0;
> SET disable_codegen=False;
> SET abort_on_error=1;
> SET cpu_limit_s=100000;
> SET debug_action=0:GETNEXT:WAIT|COORD_CANCEL_QUERY_FINSTANCES_RPC:FAIL;
> SET exec_single_node_rows_threshold=0;
> SET buffer_pool_limit=0;
> -- executing async: localhost:21000
> select l_returnflag from lineitem;
> -- 2019-01-18 17:50:03,139 INFO     MainThread: Started query 
> fa4ddb9e62a01240:54c86ad00000000
> SET 
> client_identifier=query_test/test_cancellation.py::TestCancellationParallel::()::test_cancel_select[protocol:beeswax|table_format:kudu/none|exec_option:{'batch_size':0;'num_nodes':0;'disable_codegen_rows_threshold':0;'disable_codegen':False;'abort_on_error':1;'debug_action;
> -- connecting to: localhost:21000
> -- fetching results from: <tests.common.impala_connection.OperationHandle 
> object at 0x6235e90>
> -- getting state for operation: 
> <tests.common.impala_connection.OperationHandle object at 0x6235e90>
> -- canceling operation: <tests.common.impala_connection.OperationHandle 
> object at 0x6235e90>
> -- 2019-01-18 17:50:08,196 INFO     Thread-4: Starting new HTTP connection 
> (1): localhost
> -- closing query for operation handle: 
> <tests.common.impala_connection.OperationHandle object at 0x6235e90>
> {noformat}
> [~asherman] please take a look since it looks like you touched code around 
> this area last.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscr...@impala.apache.org
For additional commands, e-mail: issues-all-h...@impala.apache.org

Reply via email to