IMPALA-7697: Fix flakiness in test_resource_limits This patch fixes one of the tests in test_resource_limits that expects a query to run for more than 2 seconds but currently fails because it sometimes completes earlier than that.
Change-Id: I2ba7080f62f0af3e16ef6c304463ebf78dec1b0c Reviewed-on: http://gerrit.cloudera.org:8080/11741 Reviewed-by: Impala Public Jenkins <[email protected]> Tested-by: Impala Public Jenkins <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/impala/repo Commit: http://git-wip-us.apache.org/repos/asf/impala/commit/0340a153 Tree: http://git-wip-us.apache.org/repos/asf/impala/tree/0340a153 Diff: http://git-wip-us.apache.org/repos/asf/impala/diff/0340a153 Branch: refs/heads/master Commit: 0340a153ceed2ac6897569faf158e357f8f628df Parents: 77c56a8 Author: Bikramjeet Vig <[email protected]> Authored: Fri Oct 19 15:02:13 2018 -0700 Committer: Impala Public Jenkins <[email protected]> Committed: Sat Oct 20 03:43:41 2018 +0000 ---------------------------------------------------------------------- .../queries/QueryTest/query-resource-limits.test | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/impala/blob/0340a153/testdata/workloads/functional-query/queries/QueryTest/query-resource-limits.test ---------------------------------------------------------------------- diff --git a/testdata/workloads/functional-query/queries/QueryTest/query-resource-limits.test b/testdata/workloads/functional-query/queries/QueryTest/query-resource-limits.test index daba679..9301637 100644 --- a/testdata/workloads/functional-query/queries/QueryTest/query-resource-limits.test +++ b/testdata/workloads/functional-query/queries/QueryTest/query-resource-limits.test @@ -43,12 +43,7 @@ row_regex:.*terminated due to CPU limit of 1s000ms.* ---- QUERY # Query should fail due to exceeding time limit. set EXEC_TIME_LIMIT_S=2; -set CPU_LIMIT_S=10000; -set SCAN_BYTES_LIMIT="100G"; -select count(*) from tpch.lineitem l1,tpch.lineitem l2, tpch.lineitem l3 where - l1.l_suppkey = l2.l_linenumber and l1.l_orderkey = l2.l_orderkey and - l1.l_orderkey = l3.l_orderkey group by l1.l_comment, l2.l_comment - having count(*) = 99 +select sleep(10000) ---- CATCH row_regex:.*expired due to execution time limit of 2s000ms.* ====
