[ https://issues.apache.org/jira/browse/SLING-5305?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Egli updated SLING-5305: ------------------------------- Fix Version/s: (was: Discovery Impl 1.2.4) Discovery Impl 1.2.6 > DiscoveryServiceImplTest.testTenInstances failure on jenkins due to > repository exception > ---------------------------------------------------------------------------------------- > > Key: SLING-5305 > URL: https://issues.apache.org/jira/browse/SLING-5305 > Project: Sling > Issue Type: Test > Components: Extensions > Affects Versions: Discovery Impl 1.2.2 > Reporter: Stefan Egli > Assignee: Stefan Egli > Fix For: Discovery Impl 1.2.6 > > > https://builds.apache.org/job/sling-trunk-1.8/org.apache.sling$org.apache.sling.discovery.impl/2015/testReport/org.apache.sling.discovery.impl/DiscoveryServiceImplTest/testTenInstances/ > failed: > {code} > Error Message > RetryLoop failed, condition is false after 60 seconds: null > Stacktrace > java.lang.AssertionError: RetryLoop failed, condition is false after 60 > seconds: null > at org.junit.Assert.fail(Assert.java:88) > at > org.apache.sling.testing.tools.retry.RetryLoop.<init>(RetryLoop.java:65) > at > org.apache.sling.discovery.base.its.AbstractDiscoveryServiceTest.startRetryLoop(AbstractDiscoveryServiceTest.java:330) > at > org.apache.sling.discovery.base.its.AbstractDiscoveryServiceTest.startRetryLoop(AbstractDiscoveryServiceTest.java:326) > at > org.apache.sling.discovery.base.its.AbstractDiscoveryServiceTest.testTenInstances(AbstractDiscoveryServiceTest.java:287) > {code} > the cause for the topology not joining is the following error thrown by > jackrabbit: > {code} > 15.11.2015 19:10:37.250 *ERROR* [Discovery-AsyncEventSender] > SyncTokenService: storeMySyncToken: got PersistenceException while storing my > syncToken: org.apache.sling.api.resource.PersistenceException: Unable to > commit changes. > org.apache.sling.api.resource.PersistenceException: Unable to commit changes. > at > org.apache.sling.discovery.base.its.setup.mock.MockedResourceResolver.commit(MockedResourceResolver.java:323) > at > org.apache.sling.discovery.commons.providers.spi.base.SyncTokenService.storeMySyncToken(SyncTokenService.java:171) > at > org.apache.sling.discovery.commons.providers.spi.base.SyncTokenService.access$000(SyncTokenService.java:50) > at > org.apache.sling.discovery.commons.providers.spi.base.SyncTokenService$1.check(SyncTokenService.java:134) > at > org.apache.sling.discovery.commons.providers.spi.base.AbstractServiceWithBackgroundCheck.startBackgroundCheck(AbstractServiceWithBackgroundCheck.java:199) > at > org.apache.sling.discovery.commons.providers.spi.base.SyncTokenService.syncToken(SyncTokenService.java:128) > at > org.apache.sling.discovery.commons.providers.spi.base.SyncTokenService.sync(SyncTokenService.java:121) > at > org.apache.sling.discovery.commons.providers.base.ViewStateManagerImpl$1.trigger(ViewStateManagerImpl.java:544) > at > org.apache.sling.discovery.commons.providers.base.AsyncEventSender.run(AsyncEventSender.java:118) > at java.lang.Thread.run(Thread.java:745) > Caused by: javax.jcr.RepositoryException: Unable to update item: item.save() > at > org.apache.jackrabbit.core.ItemSaveOperation.perform(ItemSaveOperation.java:265) > at > org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:200) > at org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:91) > at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:329) > at > org.apache.jackrabbit.core.session.SessionSaveOperation.perform(SessionSaveOperation.java:42) > at > org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:200) > at > org.apache.jackrabbit.core.SessionImpl.perform(SessionImpl.java:355) > at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:758) > at > org.apache.sling.discovery.base.its.setup.mock.MockedResourceResolver.commit(MockedResourceResolver.java:321) > ... 9 more > Caused by: org.apache.jackrabbit.core.state.ItemStateException: Node > 55532565-e412-4b01-83c4-878c63d6b0c8 must be changed as well. > at > org.apache.jackrabbit.core.observation.EventStateCollection.createEventStates(EventStateCollection.java:431) > at > org.apache.jackrabbit.core.state.SharedItemStateManager$Update.begin(SharedItemStateManager.java:726) > at > org.apache.jackrabbit.core.state.SharedItemStateManager.beginUpdate(SharedItemStateManager.java:1468) > at > org.apache.jackrabbit.core.state.SharedItemStateManager.update(SharedItemStateManager.java:1498) > at > org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:398) > at > org.apache.jackrabbit.core.state.XAItemStateManager.update(XAItemStateManager.java:354) > at > org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:373) > at > org.apache.jackrabbit.core.state.SessionItemStateManager.update(SessionItemStateManager.java:274) > at > org.apache.jackrabbit.core.ItemSaveOperation.perform(ItemSaveOperation.java:258) > ... 17 more > {code} > even though the {{SyncTokenService}] periodically stores the sync token until > the topology change is finished, for some reason these commits are not seen > by other instances: > {code} > 15.11.2015 19:10:35.967 *INFO * [main] SyncTokenService: activate: activated > with slingId=6d69a559-662a-405f-9b4f-68db0f237cf4 > 15.11.2015 19:10:37.252 *INFO * [Discovery-AsyncEventSender] > SyncTokenService: seenAllSyncTokens: no syncToken yet of > 6d69a559-662a-405f-9b4f-68db0f237cf4 > 15.11.2015 19:10:37.256 *INFO * [SyncTokenService] SyncTokenService: > seenAllSyncTokens: no syncToken yet of 6d69a559-662a-405f-9b4f-68db0f237cf4 > 15.11.2015 19:10:37.257 *INFO * [SyncTokenService] SyncTokenService: > seenAllSyncTokens: no syncToken yet of 6d69a559-662a-405f-9b4f-68db0f237cf4 > 15.11.2015 19:10:37.258 *INFO * [Discovery-AsyncEventSender] > SyncTokenService: seenAllSyncTokens: no syncToken yet of > 6d69a559-662a-405f-9b4f-68db0f237cf4 > 15.11.2015 19:10:37.258 *INFO * [Discovery-AsyncEventSender] > SyncTokenService: storeMySyncToken: stored syncToken of > slingId=6d69a559-662a-405f-9b4f-68db0f237cf4 > as=144f9fbb-1f39-41b9-81ef-a2a5884ccabc > 15.11.2015 19:10:37.258 *INFO * [Discovery-AsyncEventSender] > SyncTokenService: seenAllSyncTokens: no syncToken yet of > 6d69a559-662a-405f-9b4f-68db0f237cf4 > 15.11.2015 19:10:37.260 *INFO * [SyncTokenService] SyncTokenService: > seenAllSyncTokens: no syncToken yet of 6d69a559-662a-405f-9b4f-68db0f237cf4 > 15.11.2015 19:10:37.261 *INFO * [Discovery-AsyncEventSender] > SyncTokenService: seenAllSyncTokens: no syncToken yet of > 6d69a559-662a-405f-9b4f-68db0f237cf4 > 15.11.2015 19:10:37.261 *INFO * [Discovery-AsyncEventSender] > SyncTokenService: seenAllSyncTokens: no syncToken yet of > 6d69a559-662a-405f-9b4f-68db0f237cf4 > 15.11.2015 19:10:37.262 *INFO * [Discovery-AsyncEventSender] > SyncTokenService: seenAllSyncTokens: no syncToken yet of > 6d69a559-662a-405f-9b4f-68db0f237cf4 > 15.11.2015 19:10:37.266 *INFO * [SyncTokenService] SyncTokenService: > seenAllSyncTokens: no syncToken yet of 6d69a559-662a-405f-9b4f-68db0f237cf4 > 15.11.2015 19:10:37.266 *INFO * [SyncTokenService] SyncTokenService: > storeMySyncToken: stored syncToken of > slingId=6d69a559-662a-405f-9b4f-68db0f237cf4 > as=144f9fbb-1f39-41b9-81ef-a2a5884ccabc > 15.11.2015 19:10:37.267 *INFO * [SyncTokenService] SyncTokenService: > seenAllSyncTokens: no syncToken yet of 6d69a559-662a-405f-9b4f-68db0f237cf4 > 15.11.2015 19:10:37.266 *INFO * [SyncTokenService] SyncTokenService: > seenAllSyncTokens: no syncToken yet of 6d69a559-662a-405f-9b4f-68db0f237cf4 > 15.11.2015 19:10:37.268 *INFO * [SyncTokenService] SyncTokenService: > seenAllSyncTokens: no syncToken yet of 6d69a559-662a-405f-9b4f-68db0f237cf4 > 15.11.2015 19:10:37.268 *INFO * [Discovery-AsyncEventSender] > SyncTokenService: seenAllSyncTokens: no syncToken yet of > 6d69a559-662a-405f-9b4f-68db0f237cf4 > 15.11.2015 19:10:37.270 *INFO * > [discovery.connectors.common.runner.6d69a559-662a-405f-9b4f-68db0f237cf4] > SyncTokenService: cancel: SyncTokenService > 15.11.2015 19:10:37.271 *INFO * [Discovery-AsyncEventSender] > SyncTokenService: seenAllSyncTokens: no syncToken yet of > 6d69a559-662a-405f-9b4f-68db0f237cf4 > 15.11.2015 19:10:37.273 *INFO * [Discovery-AsyncEventSender] > SyncTokenService: storeMySyncToken: stored syncToken of > slingId=6d69a559-662a-405f-9b4f-68db0f237cf4 > as=144f9fbb-1f39-41b9-81ef-a2a5884ccabc > 15.11.2015 19:10:37.274 *INFO * [SyncTokenService] SyncTokenService: > seenAllSyncTokens: no syncToken yet of 6d69a559-662a-405f-9b4f-68db0f237cf4 > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)