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

Raju Bairishetti commented on LENS-1042:
----------------------------------------

bq.1. Along with removing listener, It can handle QueryEvent instead of 
LensEvent then other events wont land there.
Thought of adding QueryEvent instead of LensEvent for the listener in the test. 
But listener listens for both QueryEvents and QueryExecutionStatistics. 

bq.2.test failure reported is for TestEventService.testSesionHandleEvent, not 
sure which stacktrace you are looking at.
>From the jira description:   @@@@ Got Event: Type= 
>org.apache.lens.server.api.session.SessionOpened obj = 
>SessionOpened(super=SessionEvent(...

@@@@Got Event ...  this log should not be printed for session events as all 
session event listeners does not log any info and it just sets processed flag 
to true.

> TestEventService.testSesionHandleEvent fails intermittently
> -----------------------------------------------------------
>
>                 Key: LENS-1042
>                 URL: https://issues.apache.org/jira/browse/LENS-1042
>             Project: Apache Lens
>          Issue Type: Bug
>          Components: server, test
>            Reporter: Amareshwari Sriramadasu
>            Assignee: Raju Bairishetti
>             Fix For: 2.6
>
>         Attachments: LENS-1042.patch, LENS-1042_01.patch
>
>
> {noformat}
> Error Message
> expected [true] but found [false]
> Stacktrace
> java.lang.AssertionError: expected [true] but found [false]
>       at org.testng.Assert.fail(Assert.java:94)
>       at org.testng.Assert.failNotEquals(Assert.java:494)
>       at org.testng.Assert.assertTrue(Assert.java:42)
>       at org.testng.Assert.assertTrue(Assert.java:52)
>       at 
> org.apache.lens.server.query.TestEventService.testSesionHandleEvent(TestEventService.java:403)
> Standard Output
> @@@@ Got Event: Type= org.apache.lens.server.api.session.SessionOpened obj = 
> SessionOpened(super=SessionEvent(sessionHandle=<?xml version="1.0" 
> encoding="UTF-8" 
> standalone="yes"?><lensSessionHandle><publicId>b5528854-4452-496d-a97f-0772c5c0bcd8</publicId><secretId>1891cde4-90fb-414d-b162-0a0854b0a9ba</secretId></lensSessionHandle>,
>  id=c05af6e3-4498-46fe-b83a-f1aab9499005), user=user)
> @@@@ Got Event: Type= org.apache.lens.server.api.session.SessionRestored obj 
> = SessionRestored(super=SessionEvent(sessionHandle=<?xml version="1.0" 
> encoding="UTF-8" 
> standalone="yes"?><lensSessionHandle><publicId>b5528854-4452-496d-a97f-0772c5c0bcd8</publicId><secretId>1891cde4-90fb-414d-b162-0a0854b0a9ba</secretId></lensSessionHandle>,
>  id=09e24c8b-10d5-4e01-815e-049d62e935ec))
> @@@@ Got Event: Type= org.apache.lens.server.query.TestEventService$1 obj = 
> org.apache.lens.server.query.TestEventService$1@45e0744
> @@@@ Got Event: Type= org.apache.lens.server.api.session.SessionClosed obj = 
> SessionClosed(super=SessionEvent(sessionHandle=<?xml version="1.0" 
> encoding="UTF-8" 
> standalone="yes"?><lensSessionHandle><publicId>b5528854-4452-496d-a97f-0772c5c0bcd8</publicId><secretId>1891cde4-90fb-414d-b162-0a0854b0a9ba</secretId></lensSessionHandle>,
>  id=2a4cc8cd-f025-434c-acf8-b9e7ed11872f))
> @@@@ Got Event: Type= org.apache.lens.server.api.session.SessionExpired obj = 
> SessionExpired(super=SessionClosed(super=SessionEvent(sessionHandle=<?xml 
> version="1.0" encoding="UTF-8" 
> standalone="yes"?><lensSessionHandle><publicId>b5528854-4452-496d-a97f-0772c5c0bcd8</publicId><secretId>1891cde4-90fb-414d-b162-0a0854b0a9ba</secretId></lensSessionHandle>,
>  id=65ea3954-dfd9-435d-85aa-1fbe08db076a)))
> {noformat}
> Failure at 
> https://builds.apache.org/job/PreCommit-Lens-Build/431/testReport/junit/org.apache.lens.server.query/TestEventService/testSesionHandleEvent/



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

Reply via email to