[
https://issues.apache.org/jira/browse/IMPALA-13710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17931142#comment-17931142
]
ASF subversion and git services commented on IMPALA-13710:
----------------------------------------------------------
Commit 8605246f3cb200f25dc426c858a5d606514db293 in impala's branch
refs/heads/master from jasonmfehr
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=8605246f3 ]
IMPALA-13710: Fix Flaky Workload Management Custom Cluster Tests
The custom cluster workload management tests occasionally fail with
query not found errors. These failures are very few and far between
but still cause test flakiness.
This patch adds retries into the common assertion functions to ensure
that a slightly slower than normal workload management insert dml
does not cause test failures.
Testing accomplished by the following test suites passing locally:
* tests/custom_cluster/test_query_live.py
* tests/custom_cluster/test_query_log.py
* tests/custom_cluster/test_workload_mgmt_init.py
* tests/custom_cluster/test_workload_mgmt_sql_details.py
Change-Id: I38dad4819190fa44ca2933be9907d7f1273621e3
Reviewed-on: http://gerrit.cloudera.org:8080/22551
Reviewed-by: Impala Public Jenkins <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>
> test_log_table_newer_schema_version fails with assertionError: did not find
> query in completed queries table
> ------------------------------------------------------------------------------------------------------------
>
> Key: IMPALA-13710
> URL: https://issues.apache.org/jira/browse/IMPALA-13710
> Project: IMPALA
> Issue Type: Bug
> Reporter: Mihaly Szjatinya
> Assignee: Jason Fehr
> Priority: Critical
> Labels: broken-build
>
> Error Message
> AssertionError: did not find query in completed queries table
> Stacktrace
> {code:java}
> custom_cluster/test_workload_mgmt_init.py:233: in
> test_log_table_newer_schema_version
> TQueryTableColumn.ORDERBY_COLUMNS: ""})
> util/workload_management.py:74: in assert_query
> assert len(sql_results.data) == 1, "did not find query in completed
> queries table"
> E AssertionError: did not find query in completed queries table
> {code}
> Standard Output
> Query Id: 154f2d2198cda80b:73e0f8e900000000
>
> +*Edit:*+
> *TestWorkloadManagementSQLDetails.test_tpcds_75* in
> [https://github.com/apache/impala/blame/master/tests/custom_cluster/test_workload_mgmt_sql_details.py]
> could also fail with similar error messages.
> Error Message
> {code:java}
> AssertionError: did not find query '494265f3054e1aac:6fa4474300000000' in
> completed queries table
> {code}
> Stacktrace
> {code}
> custom_cluster/test_workload_mgmt_sql_details.py:405: in test_tpcds_75
> "web_sales.ws_ext_sales_price", "web_sales.ws_quantity"])
> custom_cluster/test_workload_mgmt_sql_details.py:102: in _run_test
> expected_where, expected_join, expected_aggregate, expected_orderby)
> custom_cluster/test_workload_mgmt_sql_details.py:67: in _assert_all
> expected_tables_queried, db)
> util/workload_management.py:682: in assert_csv_col
> "table".format(query_id)
> E AssertionError: did not find query '494265f3054e1aac:6fa4474300000000' in
> completed queries table
> {code}
> Standard Output
> {code:java}
> Query Id: 494265f3054e1aac:6fa4474300000000
> {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]