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

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

Commit 5b349cb5492827e7584412de3922d263ac441d26 in impala's branch 
refs/heads/master from Tamas Mate
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=5b349cb54 ]

IMPALA-11818: Fix flaky TestDdlStatements.test_describe_materialized_view

This test is executed on multiple ImpalaDs serially. This caused some
race condition between the CREATE/DROP database statements, the test
could fail with "Database does not exist". This commit adds SYNC_DDL to
the test, so the CREATE/DROP db won’t return till the metadata is
propagated to each ImpalaDs.

Testing:
 - Could not trigger the failure locally, but ran the test

Change-Id: I399cb70d4819f27ecd752bf709a77e2e31c5ab54
Reviewed-on: http://gerrit.cloudera.org:8080/19395
Reviewed-by: Impala Public Jenkins <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>


> Flaky TestDdlStatements.test_describe_materialized_view
> -------------------------------------------------------
>
>                 Key: IMPALA-11818
>                 URL: https://issues.apache.org/jira/browse/IMPALA-11818
>             Project: IMPALA
>          Issue Type: Bug
>    Affects Versions: Impala 4.3.0
>            Reporter: Tamas Mate
>            Assignee: Tamas Mate
>            Priority: Major
>
> h3. Error Message
> {code:none}
> metadata/test_ddl.py:913: in test_describe_materialized_view 
> use_db=unique_database, multiple_impalad=self._use_multiple_impalad(vector)) 
> common/impala_test_suite.py:623: in run_test_case table_format_info, use_db, 
> pytest.config.option.scale_factor) common/impala_test_suite.py:838: in 
> change_database impala_client.execute(query) common/impala_connection.py:212: 
> in execute return self.__beeswax_client.execute(sql_stmt, user=user) 
> beeswax/impala_beeswax.py:189: in execute handle = 
> self.__execute_query(query_string.strip(), user=user) 
> beeswax/impala_beeswax.py:365: in __execute_query handle = 
> self.execute_query_async(query_string, user=user) 
> beeswax/impala_beeswax.py:359: in execute_query_async handle = 
> self.__do_rpc(lambda: self.imp_service.query(query,)) 
> beeswax/impala_beeswax.py:522: in __do_rpc raise 
> ImpalaBeeswaxException(self.__build_error_message(b), b) E 
> ImpalaBeeswaxException: ImpalaBeeswaxException: E INNER EXCEPTION: <class 
> 'beeswaxd.ttypes.BeeswaxException'> E MESSAGE: AnalysisException: Database 
> does not exist: test_describe_materialized_view_42ad6d37
> {code}
> h3. Stacktrace
> {code:none}
> metadata/test_ddl.py:913: in test_describe_materialized_view 
> use_db=unique_database, multiple_impalad=self._use_multiple_impalad(vector)) 
> common/impala_test_suite.py:623: in run_test_case table_format_info, use_db, 
> pytest.config.option.scale_factor) common/impala_test_suite.py:838: in 
> change_database impala_client.execute(query) common/impala_connection.py:212: 
> in execute return self.__beeswax_client.execute(sql_stmt, user=user) 
> beeswax/impala_beeswax.py:189: in execute handle = 
> self.__execute_query(query_string.strip(), user=user) 
> beeswax/impala_beeswax.py:365: in __execute_query handle = 
> self.execute_query_async(query_string, user=user) 
> beeswax/impala_beeswax.py:359: in execute_query_async handle = 
> self.__do_rpc(lambda: self.imp_service.query(query,)) 
> beeswax/impala_beeswax.py:522: in __do_rpc raise 
> ImpalaBeeswaxException(self.__build_error_message(b), b) E 
> ImpalaBeeswaxException: ImpalaBeeswaxException: E INNER EXCEPTION: <class 
> 'beeswaxd.ttypes.BeeswaxException'> E MESSAGE: AnalysisException: Database 
> does not exist: test_describe_materialized_view_42ad6d37
> {code}
> h3. Standard Error
> {code:none}
> SET 
> client_identifier=metadata/test_ddl.py::TestDdlStatements::()::test_describe_materialized_view[protocol:beeswax|exec_option:{'sync_ddl':1;'test_replan':1;'batch_size':0;'num_nodes':0;'disable_codegen_rows_threshold':0;'disable_codegen':False;'abort_on_error':1;'exec_single;
>  SET sync_ddl=False; -- executing against localhost:21000
> {code}



--
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