You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lens.apache.org by "Himanshu Gahlaut (JIRA)" <ji...@apache.org> on 2015/07/22 11:38:06 UTC

[jira] [Created] (LENS-688) Assert on driverQuery fails intermittently

Himanshu Gahlaut created LENS-688:
-------------------------------------

             Summary: Assert on driverQuery fails intermittently
                 Key: LENS-688
                 URL: https://issues.apache.org/jira/browse/LENS-688
             Project: Apache Lens
          Issue Type: Sub-task
            Reporter: Himanshu Gahlaut


TestLensQueryCommands#testExecuteAsyncQuery

This test case submits a query for asynchronous execution at line[1]. After that it asserts for the presence of driverQuery at line[2]. This assert will pass when submitted query is  re-written and moved to launched state by background query submitter thread. However if the assert is executed before the query the has been processed by query submitter thread then this assert will fail.

[1] https://github.com/apache/incubator-lens/blob/apache-lens-2.2.0-beta-incubating/lens-cli/src/test/java/org/apache/lens/cli/TestLensQueryCommands.java#L227

[2] https://github.com/apache/incubator-lens/blob/apache-lens-2.2.0-beta-incubating/lens-cli/src/test/java/org/apache/lens/cli/TestLensQueryCommands.java#L238



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)