karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-4668) Inconsistent cluster status for a bundle which cannot be started
Date Thu, 08 Sep 2016 05:48:21 GMT

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

ASF subversion and git services commented on KARAF-4668:
--------------------------------------------------------

Commit f28e5d82cc85c74776e7b5d7a23c4fda048f0fba in karaf-cellar's branch refs/heads/master
from [~jbonofre]
[ https://git-wip-us.apache.org/repos/asf?p=karaf-cellar.git;h=f28e5d8 ]

[KARAF-4668] Update cluster bundle state when bundle start fails


> Inconsistent cluster status for a bundle which cannot be started
> ----------------------------------------------------------------
>
>                 Key: KARAF-4668
>                 URL: https://issues.apache.org/jira/browse/KARAF-4668
>             Project: Karaf
>          Issue Type: Bug
>          Components: cellar-bundle
>    Affects Versions: cellar-4.0.1
>            Reporter: Sergiy Shyrkov
>            Assignee: Jean-Baptiste Onofré
>            Priority: Minor
>             Fix For: cellar-4.0.2
>
>
> Test scenario:
> 1) Karaf 4.0.5 installation with Cellar 4.0.1
> 2) In the console I do an installation with start of the commons-digester bundle:
> {code}
> cluster:bundle-install -s default mvn:commons-digester/commons-digester/1.8.1
> {code}
> 3) In the log I see the error reported by the BundleEventHandler when the commons-digester
bundle is started (because of missing dependencies):
> {code}
> 2016-08-25 20:19:03,432 | ERROR | ool-120-thread-6 | BundleEventHandler             
 | 55 - org.apache.karaf.cellar.bundle - 4.0.1 | CELLAR BUNDLE: failed to install bundle [org.apache.commons.digester,
1.8.1]/org.osgi.framework.BundleException: Unable to resolve org.apache.commons.digester [223](R
223.0): missing requirement [org.apache.commons.digester [223](R 223.0)] osgi.wiring.package;
(osgi.wiring.package=org.apache.commons.beanutils) Unresolved requirements: [[org.apache.commons.digester
[223](R 223.0)] osgi.wiring.package; (osgi.wiring.package=org.apache.commons.beanutils)].
> {code}
> 4) The cluster status of the bundle is set to "Active" (when checking via "cluster:bundle-list
default"), where as the local status is "Installed" (via "bundle:list").
> The cluster state can be "corrected" by calling "cluster:sync" afterwards.
> Would it be possible to improve the error handling or at least cluster status handling
(in the BundleEventHandler.handle() we now only have the catch and log for exceptions)?



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

Mime
View raw message