[
https://issues.apache.org/jira/browse/SLING-4077?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14176906#comment-14176906
]
Carsten Ziegeler commented on SLING-4077:
-----------------------------------------
I dont remember the details but the idea of SLING-3474 is that the list is only
modified in specific places (by tasks) which are run after computeTasks. So as
long as there is all code following this contract, the syncing is implicit by
serializing the actions
> ConcurrentModificationException in
> o.a.sling.installer.core.impl.OsgiInstallerImpl
> ----------------------------------------------------------------------------------
>
> Key: SLING-4077
> URL: https://issues.apache.org/jira/browse/SLING-4077
> Project: Sling
> Issue Type: Bug
> Components: Installer
> Affects Versions: Installer Core 3.5.0, Installer Core 3.5.4
> Environment: Apache Sling Launcher as used by Apache Stanbol trunk
> versin using Installer Core 3.5.0.
> Reporter: Rupert Westenthaler
>
> When starting the Apache Stanbol Launchers I do see sometimes CME such as.
> {code}
> 16.10.2014 13:58:41.832 *ERROR* [OsgiInstallerImpl]
> org.apache.sling.extensions.threaddump.internal.Activator Uncaught exception
> in Thread Thread[OsgiInstallerImpl,5,main]
> java.util.ConcurrentModificationException
> at java.util.HashMap$HashIterator.nextEntry(HashMap.java:894)
> at java.util.HashMap$KeyIterator.next(HashMap.java:928)
> at
> org.apache.sling.installer.core.impl.OsgiInstallerImpl.computeTasks(OsgiInstallerImpl.java:586)
> at
> org.apache.sling.installer.core.impl.OsgiInstallerImpl.run(OsgiInstallerImpl.java:242)
> at java.lang.Thread.run(Thread.java:724)
> {code}
> Looks like as if iterations over the PersistentResourceList need to get
> synchronized.
> The above exception is reported against version 3.5.0 however as the affected
> code as not changed in 3.5.4 I expect this version to also be affected by
> this. Because of that I also added this version to the list of affected.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)