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

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

Commit 65163e9544d03558001a8f7df00bacf5447666e3 in impala's branch 
refs/heads/2.x from [~vercego]
[ https://git-wip-us.apache.org/repos/asf?p=impala.git;h=65163e9 ]

IMPALA-6956: deflake and logging for query_expiration test

There was a recent flake where the number of in-flight queries
that were executing differed from the expected number.
The reason for the false negative is that one of the queries
expired before the check for in-flight queries: it took too long
to issue the queries.

This change modifies the timeout for the expired query to not expire
so quickly. Additional logging is added to the check for in-flight
queries so that we can distinguish the case of too few queries vs.
queries that have the wrong state.

Change-Id: I01a8762d28ad920b9ec8a0b1b82469618c66768f
Reviewed-on: http://gerrit.cloudera.org:8080/10602
Reviewed-by: Tim Armstrong <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>
Reviewed-on: http://gerrit.cloudera.org:8080/10621
Tested-by: Tim Armstrong <[email protected]>


> check_num_executing fails test_query_expiration
> -----------------------------------------------
>
>                 Key: IMPALA-6956
>                 URL: https://issues.apache.org/jira/browse/IMPALA-6956
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Backend
>    Affects Versions: Impala 3.1.0
>            Reporter: Vuk Ercegovac
>            Assignee: Vuk Ercegovac
>            Priority: Blocker
>              Labels: broken-build, flaky
>             Fix For: Impala 2.13.0, Impala 3.1.0
>
>
> This happened recently on an s3 build. The check that asserts the number of 
> currently running queries comes back a few queries short.
> {noformat}
> custom_cluster/test_query_expiration.py:71: in test_query_expiration 
> self._check_num_executing(impalad, len(handles)) 
> custom_cluster/test_query_expiration.py:38: in _check_num_executing assert 
> actual == expected 
> E assert 2 == 4
> {noformat}
> The last query is executed with: 
> {noformat}
> I0426 01:57:29.507251 12229 query-state.cc:395] Executing instance. 
> instance_id=be4bd338f1d8a8ef:651e7a3c00000000 fragment_idx=0 
> per_fragment_instance_idx=0 coord_state_idx=0 #in-flight=4
> {noformat}
> So there are 4 in flight at that time. However, prior to this, I see that 
> some are in the process of being cancelled:
> {noformat}
> I0426 01:57:29.022300 11843 impala-server.cc:1908] Expiring query 
> 524c239e0d9f6356:b70c252400000000 due to execution time limit of 1s.
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to