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

Raju Bairishetti updated LENS-1042:
-----------------------------------
    Attachment: LENS-1042.patch

Session events are notified intermittently to event listener in 
testQueryStatusLogger. Event listener in testQueryStatusLogger listens for all 
kinds of LensEvents.

Right now, Precommit build logs are not available for the failed scenario.

> 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
>
>
> {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