aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Ross (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (ARIES-902) Reference counts not being checked before removing constituent relationships between the "provisioned to" subsystem and bundle resources.
Date Thu, 09 Aug 2012 13:05:18 GMT

     [ https://issues.apache.org/jira/browse/ARIES-902?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

John Ross resolved ARIES-902.
-----------------------------

    Resolution: Fixed

Fixed in http://svn.apache.org/viewvc?view=revision&revision=1371183.

Knowing when to retain or remove constituent relationships between subsystems and bundles
can be tricky. For example, the subsystem being uninstalled may have a reference to a bundle
that's a dependency provisioned to (i.e. is a constituent of) another subsystem. If the reference
count is zero, the constituent relationship between the bundle and the other subsystem should
be removed. Note that the subsystem being uninstalled may be the "provisioned to" subsystem
if it accepts dependencies. The reference count cannot always be relied upon, however. In
the case of an unscoped subsystem being uninstalled that shares a bundle with another unscoped
subsystem, the reference count will not be zero but the constituent relationship should be
removed nevertheless.

The approach taken in this patch attempts to cover all possibilities by always removing the
constituent relationship between the subsystem being acted upon (i.e. the subsystem being
uninstalled) and the bundle. There is no harm done if the relationship does not actually exist.
Then, if the resource is uninstallable (i.e. reference count equals zero), the constituent
relationship between the "provisioned to" subsystem and the bundle is removed. There is no
harm done if the "provisioned to" subsystem turns out to be the same subsystem as the one
being acted upon.
                
> Reference counts not being checked before removing constituent relationships between
the "provisioned to" subsystem and bundle resources.
> -----------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ARIES-902
>                 URL: https://issues.apache.org/jira/browse/ARIES-902
>             Project: Aries
>          Issue Type: Bug
>          Components: Subsystem
>            Reporter: John Ross
>            Assignee: John Ross
>
> When uninstalling a subsystem, the reference count is not being checked before removing
the constituent relationships between the "provisioned to" subsystem and bundle resources.
If the reference count is not equal to zero, the constituent relationships should not be removed.
For example, the bundle resource might be a dependency of the uninstalling subsystem and a
content resource of the "provisioned to" subsystem.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message