[
https://issues.apache.org/jira/browse/SLING-5267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14991522#comment-14991522
]
Stefan Egli commented on SLING-5267:
------------------------------------
the test actually had a bug: it was assuming 0 events to be received at a
certain point - even though there was the possibility that an event
(TOPOLOGY_INIT) was already sent then.
> TestOakSyncTokenService.testTwoNodesOneLeaving failed on jenkins, again
> -----------------------------------------------------------------------
>
> Key: SLING-5267
> URL: https://issues.apache.org/jira/browse/SLING-5267
> Project: Sling
> Issue Type: Bug
> Components: Extensions
> Affects Versions: Discovery Commons 1.0.2
> Reporter: Stefan Egli
> Assignee: Stefan Egli
> Priority: Minor
> Fix For: Discovery Commons 1.0.4
>
>
> TestOakSyncTokenService.testTwoNodesOneLeaving failed on jenkins again, so
> SLING-5225 wasn't enough.
> Details:
> https://builds.apache.org/job/sling-trunk-1.7/org.apache.sling$org.apache.sling.discovery.commons/2652/testReport/org.apache.sling.discovery.commons.providers.spi.base/TestOakSyncTokenService/testTwoNodesOneLeaving/
> {code}
> Regression
> org.apache.sling.discovery.commons.providers.spi.base.TestOakSyncTokenService.testTwoNodesOneLeaving
> Error Message
> expected:<0> but was:<1>
> Stacktrace
> java.lang.AssertionError: expected:<0> but was:<1>
> at org.junit.Assert.fail(Assert.java:74)
> at org.junit.Assert.failNotEquals(Assert.java:448)
> at org.junit.Assert.assertEquals(Assert.java:102)
> at org.junit.Assert.assertEquals(Assert.java:323)
> at org.junit.Assert.assertEquals(Assert.java:319)
> at
> org.apache.sling.discovery.commons.providers.spi.base.TestOakSyncTokenService.testTwoNodesOneLeaving(TestOakSyncTokenService.java:168)
> Standard Output
> 04.11.2015 11:36:56.864 *INFO * [main] IndexUpdate: Found a new index node
> [reference]. Reindexing is requested
> 04.11.2015 11:36:56.864 *WARN * [main] IndexUpdate: Missing index provider of
> type [reference], requesting reindex on [/oak:index/reference]
> 04.11.2015 11:36:57.001 *INFO * [main] IdMapService: registerEventHandler:
> bundleContext is null - cannot register
> 04.11.2015 11:36:57.001 *INFO * [main] IdMapService: init: init failed:
> java.lang.Exception: No Descriptor value available
> 04.11.2015 11:36:57.001 *INFO * [main] IdMapService: backgroundCheck:
> spawning background-thread for 'IdMapService-initializer'
> 04.11.2015 11:36:57.002 *INFO * [main] OakBacklogClusterSyncService:
> activate: activated with slingId=5575618b-440a-4370-a27c-3223017bc528
> 04.11.2015 11:36:57.002 *INFO * [main] ViewStateManagerImpl:
> handleNewViewNonDelayed: ClusterSyncService set - invoking...
> 04.11.2015 11:36:57.002 *INFO * [main] ViewStateManagerImpl:
> handleNewViewNonDelayed: invoking waitForAsyncEvents, then clusterSyncService
> (modCnt=3)
> 04.11.2015 11:36:57.002 *INFO * [Discovery-AsyncEventSender]
> AsyncEventSender: AsyncEventSender.run: started.
> 04.11.2015 11:36:57.002 *INFO * [Discovery-AsyncEventSender]
> ViewStateManagerImpl: handleNewViewNonDelayed/waitForAsyncEvents.run: done,
> now invoking consistencyService (modCnt=3)
> 04.11.2015 11:36:57.002 *INFO * [Discovery-AsyncEventSender]
> OakBacklogClusterSyncService: sync: doing wait-for-backlog part for
> view=DefaultTopologyView[current=true, num=2,
> instances=a905fe58-aa7e-4861-bc9e-3d742746b270[local=false,leader=false],5575618b-440a-4370-a27c-3223017bc528[local=true,leader=true]]
> 04.11.2015 11:36:57.003 *INFO * [Discovery-AsyncEventSender]
> OakBacklogClusterSyncService: waitWhileBacklog: could not initialize...
> 04.11.2015 11:36:57.003 *INFO * [main] IdMapService: registerEventHandler:
> bundleContext is null - cannot register
> 04.11.2015 11:36:57.005 *INFO * [Discovery-AsyncEventSender]
> OakBacklogClusterSyncService: backgroundCheck: spawning background-thread for
> 'OakBacklogClusterSyncService-backlog-waiting'
> 04.11.2015 11:36:57.005 *INFO * [main] IdMapService: init: init failed:
> java.lang.Exception: No Descriptor value available
> 04.11.2015 11:36:57.005 *INFO * [main] IdMapService: backgroundCheck:
> spawning background-thread for 'IdMapService-initializer'
> 04.11.2015 11:36:57.008 *INFO * [IdMapService-initializer] IdMapService:
> init: added the following mapping:
> slingId=5575618b-440a-4370-a27c-3223017bc528 to discovery-lite id=1
> 04.11.2015 11:36:57.010 *INFO * [main] OakBacklogClusterSyncService:
> activate: activated with slingId=a905fe58-aa7e-4861-bc9e-3d742746b270
> 04.11.2015 11:36:57.011 *INFO *
> [OakBacklogClusterSyncService-backlog-waiting] IdMapService: toSlingId:
> mapping for 1 to 5575618b-440a-4370-a27c-3223017bc528 was newly added.
> 04.11.2015 11:36:57.011 *INFO *
> [OakBacklogClusterSyncService-backlog-waiting] OakBacklogClusterSyncService:
> getBacklogStatus: no backlog (anymore)
> 04.11.2015 11:36:57.011 *INFO *
> [OakBacklogClusterSyncService-backlog-waiting] OakBacklogClusterSyncService:
> waitWhileBacklog: no backlog (anymore), done.
> 04.11.2015 11:36:57.014 *INFO *
> [OakBacklogClusterSyncService-backlog-waiting] ViewStateManagerImpl:
> consistencyService.callback.run: invoking doHandleConsistent.
> 04.11.2015 11:36:57.015 *INFO * [IdMapService-initializer] IdMapService:
> init: init failed: java.lang.Exception: No Descriptor value available
> 04.11.2015 11:36:57.015 *INFO *
> [OakBacklogClusterSyncService-backlog-waiting] ViewStateManagerImpl:
> enqueueForAll: sending topologyEvent TopologyEvent [type=TOPOLOGY_INIT,
> oldView=null, newView=DefaultTopologyView[current=true, num=2,
> instances=a905fe58-aa7e-4861-bc9e-3d742746b270[local=false,leader=false],5575618b-440a-4370-a27c-3223017bc528[local=true,leader=true]]],
> to all (1) listeners
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)