Carsten Ziegeler created SLING-12382:
----------------------------------------
Summary: Potential concurrency issues with resource provider
registration/unregistration
Key: SLING-12382
URL: https://issues.apache.org/jira/browse/SLING-12382
Project: Sling
Issue Type: Bug
Components: ResourceResolver
Affects Versions: Resource Resolver 1.11.6
Reporter: Carsten Ziegeler
Assignee: Carsten Ziegeler
Fix For: Resource Resolver 1.11.8
With SLING-6943 (and follow up issues) we removed larger synchronized blocks in
favour if smaller ones to not call to the service registry from within a
synchronized blocks.
However, this split up synchronization might lead to concurrency issues - the
code that got split up into smaller sync blocks still expects that no one
interferes while all the blocks are executed.
As that might happen, this results in the code making wrong expectations.
We probably need to get back to large sync'ed blocks and call the service
registry from within.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)