[
https://issues.apache.org/jira/browse/LENS-576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14805036#comment-14805036
]
Amareshwari Sriramadasu commented on LENS-576:
----------------------------------------------
bq. 1. How to plug-in serialization at higher level
Options D, B, C (in this order) look fine to me. We can go with D hoping there
are no major changes across the code. If not, we can look at B and C as
alternatives, if the code is simpler.
bq. 2. How to handle serialization of members that come from third party
libraries (Hive/Hadoop) that are not implementing Serializable.
I'm thinking we can merge Option1 and 2, which makes LensResultSetMetadata to
be Externalizable and use the json serialization used for serializing into DB.
> 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.4
>
>
> 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)