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

Puneet Gupta commented on LENS-1372:
------------------------------------

Not sure how ctx can be null on restart. 
org.apache.lens.server.query.QueryExecutionServiceImpl#writeExternal is 
persisting all query contexts (QueryExecutionServiceImpl#allQueries)  before 
restart and restoring them after restart 
QueryExecutionServiceImpl#readExternal). 

Do we see any persistence failures in log  
(org.apache.lens.server.LensServices#stop, 
aorg.apache.lens.server.LensServices#persistLensServiceState) ?



> QueryRetryTest is flaky
> -----------------------
>
>                 Key: LENS-1372
>                 URL: https://issues.apache.org/jira/browse/LENS-1372
>             Project: Apache Lens
>          Issue Type: Test
>          Components: server, test
>    Affects Versions: 2.7
>            Reporter: Ted Yu
>            Assignee: Rajat Khandelwal
>            Priority: Minor
>             Fix For: 2.7
>
>
> From 
> https://builds.apache.org/job/PreCommit-Lens-Build/1145/testReport/junit/org.apache.lens.server.query.retry/QueryRetryTest/testRestartWhileRetry/
>  :
> {code}
> java.lang.NullPointerException: null
>       at 
> org.apache.lens.server.query.retry.QueryRetryTest.testRestartWhileRetry(QueryRetryTest.java:201)
> {code}
> Here is related code:
> {code}
>     ctx = getQueryService().getQueryContext(handle);
>     while (!ctx.getStatus().finished()) {
> {code}
> The test should handle the case where status is null.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to