You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lens.apache.org by "Deepak Barr (JIRA)" <ji...@apache.org> on 2015/06/02 13:40:18 UTC

[jira] [Comment Edited] (LENS-576) Cannot retrieve query results on lens server restart

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

Deepak Barr edited comment on LENS-576 at 6/2/15 11:40 AM:
-----------------------------------------------------------

[~arshadmatin20]...yes, yours is a different issue. To really pinpoint the issue, one can check getResultset() method in QueryExecutionServiceImpl.class. If queryoutputformatter is null, LensPersistentResult is never created, which causes getHttpResultSet() method to throw 404 Not Found.


was (Author: deepak.barr):
[~arshadmatin20]...yes this is different issue. To really pinpoint the issue, one can check getResultset() method in QueryExecutionServiceImpl.class. If queryoutputformatter is null, LensPersistentResult is never created, which causes getHttpResultSet() method to throw 404 Not Found.

> Cannot retrieve query results on lens server restart
> ----------------------------------------------------
>
>                 Key: LENS-576
>                 URL: https://issues.apache.org/jira/browse/LENS-576
>             Project: Apache Lens
>          Issue Type: Bug
>            Reporter: Deepak Barr
>            Assignee: Deepak Barr
>            Priority: Critical
>             Fix For: 2.2
>
>
> In the event of lens server restart, We can not obtain the query result by calling "/queryuiapi/queries/{queryHandle}/httpresultset" API  as LensPersistentResult does not get created. This is because QueryOutputFormatter variable in QueryContext object is always null.This QueryOutputFormatter is important to create LensPersistedResultSet (see getResultset() method in QueryExecutionServiceImpl class) .
> Reason : One can see that QueryOutputFormatter variable in QueryContext class is not serialized. Therefore, on server restart, this variable is always null in QueryContext for all queries.



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