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)

Reply via email to