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 2022/04/02 20:33:00 UTC

[jira] [Commented] (IMPALA-11216) test_describe_history_params is flaky

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

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

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

IMPALA-11216: Fix flaky test_describe_history_params

The test_describe_history_params was flaky because the client can
receive the timestamps in two formats, with or without nanoseconds.
This commit updates the test to handle both patterns.

Testing:
 - Executed the test locally.

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


> test_describe_history_params is flaky
> -------------------------------------
>
>                 Key: IMPALA-11216
>                 URL: https://issues.apache.org/jira/browse/IMPALA-11216
>             Project: IMPALA
>          Issue Type: Bug
>            Reporter: Zoltán Borók-Nagy
>            Assignee: Tamas Mate
>            Priority: Major
>
> Saw failure in https://jenkins.impala.io/job/ubuntu-16.04-dockerised-tests/5496/testReport/
> {noformat}
> Stack Trace
> query_test/test_iceberg.py:182: in test_describe_history_params
>     expect_results_from(ts_1 - datetime.timedelta(hours=1), 3)
> query_test/test_iceberg.py:141: in expect_results_from
>     result_ts_dt = datetime.datetime.strptime(result_ts, time_format)
> ../toolchain/toolchain-packages-gcc7.5.0/python-2.7.16/lib/python2.7/_strptime.py:332: in _strptime
>     (data_string, format))
> E   ValueError: time data '2022-03-31 14:52' does not match format '%Y-%m-%d %H:%M:%S.%f'
> {noformat}
> Probably we just need to use this elegant solution: https://stackoverflow.com/a/30584445



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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