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:15:06 UTC
[jira] [Created] (LENS-687) LauchTime set to 0 in response of
getStatus API when a successful finished query is retrieved from database
Himanshu Gahlaut created LENS-687:
-------------------------------------
Summary: LauchTime set to 0 in response of getStatus API when a successful finished query is retrieved from database
Key: LENS-687
URL: https://issues.apache.org/jira/browse/LENS-687
Project: Apache Lens
Issue Type: Sub-task
Reporter: Himanshu Gahlaut
getQueryContext method at line[1] converts finished lens query to QueryContext object using toQueryContext method in FinishedLensQuery.class.
toQueryContext method at line[2] does not set launch time in QueryContext object, due to which it defaults to 0.
If a test case calls getStatus API on a already purged successful query, it gets a LensQuery object in which launch time is set to 0.
This results in intermittent test failures. If query is not purged to Db, then test case gets proper launch time. If the query is already purged to Db, then test case gets launch time as 0 and fails.
[1]: https://github.com/apache/incubator-lens/blob/master/lens-server/src/main/java/org/apache/lens/server/query/QueryExecutionServiceImpl.java#L1649
[2]: https://github.com/apache/incubator-lens/blob/master/lens-server-api/src/main/java/org/apache/lens/server/api/query/FinishedLensQuery.java#L188
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)