Jason Fehr has uploaded this change for review. ( http://gerrit.cloudera.org:8080/22210
Change subject: IMPALA-13603: Fix Flaky Live Queries Table Tests ...................................................................... IMPALA-13603: Fix Flaky Live Queries Table Tests Workload management skips recording successful trivial DDLs but does not skip recording failed trivial DDLs. The test_query_live.py tests run a describe DDL in the setup_method(). Normally, this describe suceedes immediately and thus is not recorded in the workload management tables. However, in very rare instances, the describe DDL will fail the first time and succeed the second time. These cases result in an extra query recorded in the sys.impala_query_live table and test assertions that rely on a certain number of records being in this table fail because there are extra records. This change handles issues where the describe DDL in the setup_method() fails by returning the number of times the describe DDL ran and using that return to offset the expected record counts in the test assertions. All tests in the test_query_live.py file passed locally and in Jenkins builds. Change-Id: I767a2bd7b068ab3fdeddb7cb3c4b307844d2d279 --- M tests/common/impala_test_suite.py M tests/custom_cluster/test_query_live.py 2 files changed, 16 insertions(+), 12 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/10/22210/1 -- To view, visit http://gerrit.cloudera.org:8080/22210 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I767a2bd7b068ab3fdeddb7cb3c4b307844d2d279 Gerrit-Change-Number: 22210 Gerrit-PatchSet: 1 Gerrit-Owner: Jason Fehr <[email protected]>
