You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lens.apache.org by "Amareshwari Sriramadasu (JIRA)" <ji...@apache.org> on 2016/07/27 10:43:20 UTC
[jira] [Commented] (LENS-1234) Intermittent Test Failure
TestEventService.testSesionHandleEvent
[ https://issues.apache.org/jira/browse/LENS-1234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15395421#comment-15395421 ]
Amareshwari Sriramadasu commented on LENS-1234:
-----------------------------------------------
[~raju.bairishetti] In the following code should the CountDownLatch be created with count 4 instead of 3 ?
{code}
latch = new CountDownLatch(3);
log.info("Sending session opened event: {}", sessionOpenedEvent);
service.notifyEvent(sessionOpenedEvent);
log.info("Sending session restored event: {}", sessionRestored);
service.notifyEvent(sessionRestored);
latch.await(5, TimeUnit.SECONDS);
assertTrue(genericEventListener.processed);
assertTrue(sessionOpenedListener.processed);
assertTrue(sessionRestoredListener.processed);
{code}
There are two events. So two counts for genericEventListener and 1 for sessionOpenedListener and 1 for sessionRestoredListener ?
> Intermittent Test Failure TestEventService.testSesionHandleEvent
> -----------------------------------------------------------------
>
> Key: LENS-1234
> URL: https://issues.apache.org/jira/browse/LENS-1234
> Project: Apache Lens
> Issue Type: Bug
> Reporter: Puneet Gupta
>
> Failed
> org.apache.lens.server.query.TestEventService.testSesionHandleEvent (from TestSuite)
> Failing for the past 1 build (Since Unstable#736 )
> Took 9 ms.
> 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:379)
> Standard Output
> 26 Jul 2016 06:21:05 [5605c2b6-82ce-4d18-8a1f-bbd6e34fd514] [LogStatisticsStore_AsyncThread-1] INFO org.apache.lens.server.stats.event.query.QueryExecutionStatistics - {"eventTime":1469514065970,"submissionTime":0,"startTime":0,"endTime":0,"eventId":"queryExecutionStatistics"}
> 26 Jul 2016 06:21:05 [logid] [main] INFO org.apache.lens.server.query.TestEventService - Sending session opened event: SessionOpened(super=SessionEvent(sessionHandle=<?xml version="1.0" encoding="UTF-8" standalone="yes"?><lensSessionHandle><publicId>7161bdbb-e78e-44b8-8bce-eaf03cd33b92</publicId><secretId>b8cb4af7-fe48-470a-89da-124dde5ea26d</secretId></lensSessionHandle>, id=9d0274a6-12e7-4c2d-bcb3-f8cf332ed4af), user=user)
> 26 Jul 2016 06:21:05 [logid] [main] INFO org.apache.lens.server.query.TestEventService - Sending session restored event: SessionRestored(super=SessionEvent(sessionHandle=<?xml version="1.0" encoding="UTF-8" standalone="yes"?><lensSessionHandle><publicId>7161bdbb-e78e-44b8-8bce-eaf03cd33b92</publicId><secretId>b8cb4af7-fe48-470a-89da-124dde5ea26d</secretId></lensSessionHandle>, id=4b43c5aa-fdf3-49a5-b3bf-29c33f44e628))
> 26 Jul 2016 06:21:05 [5605c2b6-82ce-4d18-8a1f-bbd6e34fd514] [GenericEventListener_AsyncThread-1] INFO org.apache.lens.server.query.TestEventService - LensEvent: TEST_EVENT
> 26 Jul 2016 06:21:05 [5605c2b6-82ce-4d18-8a1f-bbd6e34fd514] [GenericEventListener_AsyncThread-1] INFO org.apache.lens.server.query.TestEventService - LensEvent: 56eef420-08f9-4aa1-9c00-55e105772b3c
> 26 Jul 2016 06:21:05 [5605c2b6-82ce-4d18-8a1f-bbd6e34fd514] [GenericEventListener_AsyncThread-1] INFO org.apache.lens.server.query.TestEventService - LensEvent: queryExecutionStatistics
> 26 Jul 2016 06:21:05 [fdb6b23f-a94e-4591-a4ee-e1f83ce144d2] [Event_Service_Thread-10] INFO org.apache.lens.server.query.TestEventService - Session opened: SessionOpened(super=SessionEvent(sessionHandle=<?xml version="1.0" encoding="UTF-8" standalone="yes"?><lensSessionHandle><publicId>7161bdbb-e78e-44b8-8bce-eaf03cd33b92</publicId><secretId>b8cb4af7-fe48-470a-89da-124dde5ea26d</secretId></lensSessionHandle>, id=9d0274a6-12e7-4c2d-bcb3-f8cf332ed4af), user=user)
> 26 Jul 2016 06:21:05 [fdb6b23f-a94e-4591-a4ee-e1f83ce144d2] [Event_Service_Thread-10] INFO org.apache.lens.server.query.TestEventService - Session restored: SessionRestored(super=SessionEvent(sessionHandle=<?xml version="1.0" encoding="UTF-8" standalone="yes"?><lensSessionHandle><publicId>7161bdbb-e78e-44b8-8bce-eaf03cd33b92</publicId><secretId>b8cb4af7-fe48-470a-89da-124dde5ea26d</secretId></lensSessionHandle>, id=4b43c5aa-fdf3-49a5-b3bf-29c33f44e628))
> 26 Jul 2016 06:21:05 [5605c2b6-82ce-4d18-8a1f-bbd6e34fd514] [GenericEventListener_AsyncThread-1] INFO org.apache.lens.server.query.TestEventService - LensEvent: 9d0274a6-12e7-4c2d-bcb3-f8cf332ed4af
> 26 Jul 2016 06:21:05 [5605c2b6-82ce-4d18-8a1f-bbd6e34fd514] [GenericEventListener_AsyncThread-1] INFO org.apache.lens.server.query.TestEventService - LensEvent: 4b43c5aa-fdf3-49a5-b3bf-29c33f44e628
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)