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/09/19 22:25:00 UTC

[jira] [Commented] (IMPALA-7418) test_udf_errors - returns Cancelled instead of actual error

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

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

Commit 4845f98beecc90775f58e8e3eb72721e02252f18 in impala's branch refs/heads/master from [~tarmstrong@cloudera.com]
[ https://git-wip-us.apache.org/repos/asf?p=impala.git;h=4845f98 ]

IMPALA-7420: different error code for internal cancellation

I started by converting scan and spill-to-disk because the
cancellation there is always meant to be internal to the scan and
spill-to-disk subsystems.

I updated all places that checked for TErrorCode::CANCELLED to treat
CANCELLED_INTERNALLY the same.

This is to aid triage and debugging of bugs like IMPALA-7418
where an "internal" cancellation leaks out into the query state.
This will make it easier to determine if an internal cancellation
somehow "leaked" out.

Testing:
Ran exhaustive tests.

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


> test_udf_errors - returns Cancelled instead of actual error
> -----------------------------------------------------------
>
>                 Key: IMPALA-7418
>                 URL: https://issues.apache.org/jira/browse/IMPALA-7418
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Backend
>    Affects Versions: Impala 3.1.0
>            Reporter: Tim Armstrong
>            Assignee: Pooja Nilangekar
>            Priority: Blocker
>              Labels: broken-build
>             Fix For: Impala 3.1.0
>
>
> {noformat}
> query_test.test_udfs.TestUdfExecution.test_udf_errors[exec_option: {'disable_codegen_rows_threshold': 0, 'disable_codegen': True, 'exec_single_node_rows_threshold': 0, 'enable_expr_rewrites': True} | table_format: text/none] (from pytest)
> Failing for the past 1 build (Since Failed#2925 )
> Took 19 sec.
> add description
> Error Message
> query_test/test_udfs.py:415: in test_udf_errors     self.run_test_case('QueryTest/udf-errors', vector, use_db=unique_database) common/impala_test_suite.py:412: in run_test_case     self.__verify_exceptions(test_section['CATCH'], str(e), use_db) common/impala_test_suite.py:290: in __verify_exceptions     (expected_str, actual_str) E   AssertionError: Unexpected exception string. Expected: BadExpr2 prepare error E   Not found in actual: ImpalaBeeswaxException: Query aborted:Cancelled
> Stacktrace
> query_test/test_udfs.py:415: in test_udf_errors
>     self.run_test_case('QueryTest/udf-errors', vector, use_db=unique_database)
> common/impala_test_suite.py:412: in run_test_case
>     self.__verify_exceptions(test_section['CATCH'], str(e), use_db)
> common/impala_test_suite.py:290: in __verify_exceptions
>     (expected_str, actual_str)
> E   AssertionError: Unexpected exception string. Expected: BadExpr2 prepare error
> E   Not found in actual: ImpalaBeeswaxException: Query aborted:Cancelled
> Standard Error
> SET sync_ddl=False;
> -- executing against localhost:21000
> DROP DATABASE IF EXISTS `test_udf_errors_be4e0293` CASCADE;
> MainThread: Started query bd4790b45c20640d:9c62ffba00000000
> SET sync_ddl=False;
> -- executing against localhost:21000
> CREATE DATABASE `test_udf_errors_be4e0293`;
> MainThread: Started query 474595a3ecba67bd:7a14c8400000000
> MainThread: Created database "test_udf_errors_be4e0293" for test ID "query_test/test_udfs.py::TestUdfExecution::()::test_udf_errors[exec_option: {'disable_codegen_rows_threshold': 0, 'disable_codegen': True, 'exec_single_node_rows_threshold': 0, 'enable_expr_rewrites': True} | table_format: text/none]"
> -- executing against localhost:21000
> use test_udf_errors_be4e0293;
> MainThread: Started query 264b0cd09d289c09:cc5dafed00000000
> SET disable_codegen_rows_threshold=0;
> SET disable_codegen=True;
> SET exec_single_node_rows_threshold=0;
> SET enable_expr_rewrites=True;
> -- executing against localhost:21000
> create function if not exists hive_pi() returns double
> location '/test-warehouse/hive-exec.jar'
> symbol='org.apache.hadoop.hive.ql.udf.UDFPI';
> MainThread: Started query ba41ccb6f020becd:db23209f00000000
> -- executing against localhost:21000
> create function if not exists foo() returns double
> location '/test-warehouse/not-a-real-file.so'
> symbol='FnDoesNotExist';
> -- executing against localhost:21000
> create function if not exists foo() returns double
> location '/test-warehouse/not-a-real-file.so'
> symbol='FnDoesNotExist';
> -- executing against localhost:21000
> create function if not exists foo (string, string) returns string location
> '/test-warehouse/test_udf_errors_be4e0293_bad_udf.ll' symbol='MyAwesomeUdf';
> -- executing against localhost:21000
> create function if not exists twenty_args(int, int, int, int, int, int,
>     int, int, int, int, int, int, int, int, int, int, int, int, int, int) returns int
> location '/test-warehouse/libTestUdfs.so'
> symbol='TwentyArgs';
> MainThread: Started query 6b4dc82f22e2f0f6:9d28ab0300000000
> -- executing against localhost:21000
> select twenty_args(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20);
> MainThread: Started query d40ea0f1effacd1:22e5c31f00000000
> -- executing against localhost:21000
> create function if not exists twenty_one_args(int, int, int, int, int, int,
>     int, int, int, int, int, int, int, int, int, int, int, int, int, int, int) returns int
> location '/test-warehouse/libTestUdfs.so'
> symbol='TwentyOneArgs';
> MainThread: Started query 12453a7e4b13fa4d:d163be3300000000
> -- executing against localhost:21000
> select twenty_one_args(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21);
> MainThread: Started query 26461e2ce5ce3adf:3544166a00000000
> -- executing against localhost:21000
> create function if not exists nine_args_ir(int, int, int, int, int, int,
>     int, int, int) returns int
> location '/test-warehouse/test-udfs.ll'
> symbol='NineArgs';
> MainThread: Started query 5b4599e5b1728cf3:47d44f2100000000
> -- executing against localhost:21000
> select nine_args_ir(1,2,3,4,5,6,7,8,9);
> MainThread: Started query a64b4c1f588c7201:3ecfc39600000000
> -- executing against localhost:21000
> create function if not exists bad_expr(double) returns boolean
> location '/test-warehouse/libTestUdfs.so'
> symbol='BadExpr' prepare_fn='BadExprPrepare' close_fn='BadExprClose';
> MainThread: Started query 9649b1c86826ffba:ef97b6bb00000000
> -- executing against localhost:21000
> create function if not exists bad_expr2(double) returns boolean
> location '/test-warehouse/libTestUdfs.so'
> symbol='BadExpr' prepare_fn='BadExpr2Prepare' close_fn='BadExprClose';
> MainThread: Started query ec42f91cdc2b0a0e:53c863d800000000
> -- executing against localhost:21000
> select count(t1.int_col) from functional.alltypes t1 join functional.alltypes t2
> on (bad_expr(rand()) = (t2.bool_col && t1.bool_col));
> MainThread: Started query 9b4a86470ad7a5ba:f3c62e6000000000
> -- executing against localhost:21000
> select count(t1.int_col) from functional.alltypes t1 join functional.alltypes t2
> on (bad_expr2(rand()) = (t2.bool_col && t1.bool_col));
> MainThread: Started query e24faf2aa198849f:bccd6d6000000000
> -- executing against localhost:21000
> select count(int_col) from functional.alltypes where bad_expr(rand());
> MainThread: Started query f6400e152de0995a:a2fc1d4800000000
> -- executing against localhost:21000
> select count(int_col) from functional.alltypes where bad_expr2(rand());
> MainThread: Started query 4f4c1edb15bde2c3:9e247d1400000000
> 18/08/09 03:15:22 INFO fs.TrashPolicyDefault: Moved: 'hdfs://localhost:20500/test-warehouse/test_udf_errors_be4e0293_bad_udf.ll' to trash at: hdfs://localhost:20500/user/ubuntu/.Trash/Current/test-warehouse/test_udf_errors_be4e0293_bad_udf.ll
> {noformat}
> This started failing on Ubuntu 16.04 GVOs. E.g. https://jenkins.impala.io/job/ubuntu-16.04-from-scratch/2925 https://jenkins.impala.io/job/ubuntu-16.04-from-scratch/2923/
> I can reproduce locally after looping for ~4-5 iterations on average with 
> {noformat}
> while impala-py.test tests/query_test/test_udfs.py -k errors -n4 --verbose; do date; done
> {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