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

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

Commit 8086c4457e02a5bc542d183b82b733891df4eddf in impala's branch 
refs/heads/master from Zoltan Borok-Nagy
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=8086c44 ]

IMPALA-10905: test_iceberg.py test_time_travel fails in exhaustive builds

test_iceberg.py::test_time_travel sets the TIMEZONE query option
during execution. In the end it sets the TIMEZONE to 'Asia/Tokyo'.

The problem is that it sets the TIMEZONE of the client of the
ImpalaTestSuite. This means that a subsequent test will use
timezone 'Asia/Tokyo' instead of the local one.

This patch fixes this issue by creating a local Impala client for
the test.

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


> query_test/test_iceberg.py test_time_travel fails in exhaustive builds
> ----------------------------------------------------------------------
>
>                 Key: IMPALA-10905
>                 URL: https://issues.apache.org/jira/browse/IMPALA-10905
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Backend
>    Affects Versions: Impala 4.1.0
>            Reporter: Joe McDonnell
>            Assignee: Zoltán Borók-Nagy
>            Priority: Blocker
>              Labels: broken-build
>
> Exhaustive tests are seeing failures in 
> query_test/test_iceberg.py::test_time_travel:
> {noformat}
> query_test/test_iceberg.py:166: in test_time_travel
>     expect_results_t(quote(ts_1), ['1'])
> query_test/test_iceberg.py:132: in expect_results_t
>     expected_results)
> query_test/test_iceberg.py:124: in expect_results
>     data = self.execute_query(query)
> common/impala_test_suite.py:831: in wrapper
>     return function(*args, **kwargs)
> common/impala_test_suite.py:863: in execute_query
>     return self.__execute_query(self.client, query, query_options)
> common/impala_test_suite.py:940: in __execute_query
>     return impalad_client.execute(query, user=user)
> common/impala_connection.py:205: 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: IllegalArgumentException: Cannot find a snapshot older than 
> 2021-09-03 16:18:22.295{noformat}
> This tests was introduced with IMPALA-10840. It seems pretty consistent so 
> far.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to