[ 
https://issues.apache.org/jira/browse/LENS-576?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Deepak Barr updated LENS-576:
-----------------------------
    Description: 
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.

Suggestion:
One way to solve this issue could be to simply serialize the 
QueryOutputFormatter variable in QueryContext and make QueryOutputFormatter 
class serializable.

  was:
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.

Suggestion:
One way to solve this issue could be to simply serialize the 
QueryOutputFormatter variable in QueryContext.


> 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
>
> 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.
> Suggestion:
> One way to solve this issue could be to simply serialize the 
> QueryOutputFormatter variable in QueryContext and make QueryOutputFormatter 
> class serializable.



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

Reply via email to