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/21 15:00:06 UTC
[jira] [Updated] (LENS-684) Assertion on phase 1 rewritten query
will fail intermittently
[ https://issues.apache.org/jira/browse/LENS-684?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Himanshu Gahlaut updated LENS-684:
----------------------------------
Description:
TestQueryService#testExecuteAsync:
Below asserts will fail, if the query context is removed by QueryPurger thread before the test running test case could retrieve it from allQueries collection using queryService. Provided lens.server.max.finished.queries=0 in lens-site.xml
{code}
QueryContext ctx = queryService.getQueryContext(lensQuery.getQueryHandle());
assertNotNull(ctx.getPhase1RewrittenQuery());
assertEquals(ctx.getPhase1RewrittenQuery(), ctx.getUserQuery());
{code}
These were added in LENS-24 Commit: https://github.com/apache/incubator-lens/commit/689c9a99b112b21e9ecba9a8461cf9672b88ba2f
was:
TestQueryService#testExecuteAsync:
Below asserts will fail, if the query context is removed by QueryPurger thread before the test running test case could retrieve it from allQueries collection using queryService. Provided lens.server.max.finished.queries=0 in lens-site.xml
{code}
QueryContext ctx = queryService.getQueryContext(lensQuery.getQueryHandle());
assertNotNull(ctx.getPhase1RewrittenQuery());
assertEquals(ctx.getPhase1RewrittenQuery(), ctx.getUserQuery());
{code}
These were added in this commit: https://github.com/apache/incubator-lens/commit/689c9a99b112b21e9ecba9a8461cf9672b88ba2f
> Assertion on phase 1 rewritten query will fail intermittently
> -------------------------------------------------------------
>
> Key: LENS-684
> URL: https://issues.apache.org/jira/browse/LENS-684
> Project: Apache Lens
> Issue Type: Sub-task
> Reporter: Himanshu Gahlaut
>
> TestQueryService#testExecuteAsync:
> Below asserts will fail, if the query context is removed by QueryPurger thread before the test running test case could retrieve it from allQueries collection using queryService. Provided lens.server.max.finished.queries=0 in lens-site.xml
> {code}
> QueryContext ctx = queryService.getQueryContext(lensQuery.getQueryHandle());
> assertNotNull(ctx.getPhase1RewrittenQuery());
> assertEquals(ctx.getPhase1RewrittenQuery(), ctx.getUserQuery());
>
> {code}
> These were added in LENS-24 Commit: https://github.com/apache/incubator-lens/commit/689c9a99b112b21e9ecba9a8461cf9672b88ba2f
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)