You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "John Ross (JIRA)" <ji...@apache.org> on 2015/11/17 14:53:10 UTC

[jira] [Commented] (ARIES-1449) Multiple subsystem instances with the same location can be concurrently installed.

    [ https://issues.apache.org/jira/browse/ARIES-1449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15008661#comment-15008661 ] 

John Ross commented on ARIES-1449:
----------------------------------

A mechanism for sharing the same lock across multiple code points far removed from one another is needed. The classes available under java.util.concurrent are not sufficient by themselves. Additional code written on top of LockSupport or better yet ReentrantLock is necessary in order to achieve what is necessary. I would prefer, if possible, to reuse existing and proven code since this can be tricky to get right. I am unaware of anything already available in Aries. Tom Watson, as the original and sole author, will be contributing a class (about 70 lines of code) under the Apache license that does what is needed. See http://git.eclipse.org/c/equinox/rt.equinox.framework.git/tree/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/container/LockSet.java. I would be happy to discuss other alternatives but please be sure they are similar to LockSet because that is exactly what is needed without any additional overhead.

> Multiple subsystem instances with the same location can be concurrently installed.
> ----------------------------------------------------------------------------------
>
>                 Key: ARIES-1449
>                 URL: https://issues.apache.org/jira/browse/ARIES-1449
>             Project: Aries
>          Issue Type: Bug
>          Components: Subsystem
>    Affects Versions: subsystem-2.0.6
>            Reporter: John Ross
>            Assignee: John Ross
>
> Multiple subsystem instances with the same location can be installed successfully if the installations happen concurrently and before any one of the installations completes.
> Note this issue will also apply to other checks such as checking for identical locations but different symbolic names, versions, and types.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)