karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet (JIRA)" <j...@apache.org>
Subject [jira] Moved: (KARAF-81) Hot undeployment of features does not uninstall all bundles
Date Tue, 29 Jun 2010 10:10:51 GMT

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

Guillaume Nodet moved FELIX-2358 to KARAF-81:

              Project: Karaf  (was: Felix)
                  Key: KARAF-81  (was: FELIX-2358)
    Affects Version/s:     (was: karaf-1.4.0)
                           (was: karaf 1.6.0)
          Component/s:     (was: Karaf)
        Fix Version/s: 1.6.2
                           (was: karaf-1.6.2)

> Hot undeployment of features does not uninstall all bundles
> -----------------------------------------------------------
>                 Key: KARAF-81
>                 URL: https://issues.apache.org/jira/browse/KARAF-81
>             Project: Karaf
>          Issue Type: Bug
>         Environment: Tested on a Windows XP box, with FUSE ESB 4.2 running Felix as Osgi
>            Reporter: Thomas Demande
>            Assignee: Guillaume Nodet
>             Fix For: 1.6.2
>         Attachments: dummy-feature.xml
> When deploying features _via_ the drop-in mechanism (using the {{FeatureDeploymentListener}}),
it also installs needed bundles, as required.
> But when the feature file is removed from the deploy directory, some problems may occur,
the most important being that bundles installed by the feature (only) will not be uninstalled.
> An exception is thrown when trying to access the feature bundle entries when not permitted,
resulting in an exception, 
> I think this is related to what's said in the revision 909487 comment (http://svn.apache.org/viewvc?view=revision&revision=909487).
> That snippet of the class
> 142 } else if (bundleEvent.getType() == BundleEvent.UNINSTALLED) {
> 143 	try {
> 144 	Enumeration featuresUrlEnumeration = bundle.findEntries("/META-INF/" + FEATURE_PATH
+ "/", "*.xml", false); 
> will always throw an exception as the findEntries has to throw an IllegalStateException
if the bundle in uninstalled.
> Therefore, the call to "featuresService.uninstallFeature(f.getName(), f.getVersion());
" is never reached, and bundled participating in that feature are not uninstalled.
> It's worth noting that in some cases everything is correctly removed, but that seems
to happen only if Karaf has been restarted after the first drop-in of the feature.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message