mirror of
https://github.com/apache/impala.git
synced 2026-01-05 21:00:54 -05:00
For some queries, the exec summary will not be completely filled in even if the query is FINISHED. In particular, the exec_stats field may not be set. This was causing an error in our test code that converts the exec summary to a more usable format. The situation is essentially deterministic for some queries, but it was being hidden by testing code that caught the error and discarded it in most situations, leading to flaky tests. This patch removes the 'try' that was hiding the error and makes the code check for the presence of exec_stats and handle it rather than generating an error. I filed IMPALA-5783 for followup work to be more rigorous about when the exec summary should and shouldn't be fully present. Testing: - Ran the affected tests in a loop and they are no longer flaky. Change-Id: Id52ac62da2b01f9e163e97cbe4590f8db6b663d2 Reviewed-on: http://gerrit.cloudera.org:8080/7627 Tested-by: Impala Public Jenkins Reviewed-by: Thomas Tauber-Marshall <tmarshall@cloudera.com>