Bundle changes should be queue while scanning all watched folders
-----------------------------------------------------------------
Key: SLING-709
URL: https://issues.apache.org/jira/browse/SLING-709
Project: Sling
Issue Type: Improvement
Affects Versions: JCR Install 2.0.4
Reporter: Felix Meschberger
Assignee: Bertrand Delacretaz
Fix For: JCR Install 2.0.4
The RepositoryObserver thread scans the configured repository locations for
new, modified and removed resources. If such resources are found, the
OSGiController is notified, which takes immediate action. This causes bundle
changes (installation, update, removal, start etc.) to be mixed within short
time frames and may cause massive concurrency issues. This is generally not a
problem in a running system.
In a freshly started system, this may cause some problems. Therefore I suggest
the RepositoryObserver puts the OSGiController into "queueing mode" while
scanning all folders. After the scan is done, the OSGiController is reset into
normal mode, where it will then run the queued actions.
In turn, the OSGiController should not run its PendingBundles queue, while it
is processing the resource which have been queued during "queueing mode".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.