[
https://issues.apache.org/jira/browse/SLING-2879?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stefan Egli resolved SLING-2879.
--------------------------------
Resolution: Fixed
fixed and tested using snapshot
> Avoid concurrency issues in a cluster by using
> ResourceUtil.getOrCreateResource
> -------------------------------------------------------------------------------
>
> Key: SLING-2879
> URL: https://issues.apache.org/jira/browse/SLING-2879
> Project: Sling
> Issue Type: Bug
> Components: Extensions
> Affects Versions: Discovery Impl 1.0.0
> Reporter: Stefan Egli
> Assignee: Stefan Egli
>
> org.apache.sling.discovery.impl.common.resource.ResourceHelper.getOrCreateResource/createResource
> use own code to create a resource. This code is not as stable/fault-tolerant
> as the ResourceUtil.getOrCreateResource. The latter deals with situations
> where the underlying repository throws stale item exceptions and such. The
> ResourceHelper should use ResourceUtil.getOrCreateResource and not reinvent
> it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira