karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-5371) Race condition between FeatureService and Fileinstall
Date Mon, 18 Sep 2017 07:30:01 GMT

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

ASF GitHub Bot commented on KARAF-5371:
---------------------------------------

GitHub user gnodet opened a pull request:

    https://github.com/apache/karaf/pull/373

    [KARAF-5371] Race condition between FeatureService and Fileinstall

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/gnodet/karaf KARAF-5371

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/karaf/pull/373.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #373
    
----
commit 9cb3d2487bc1c85bd190126eaa894f7b681f69ce
Author: Guillaume Nodet <gnodet@gmail.com>
Date:   2017-09-18T07:28:49Z

    [KARAF-5371] Race condition between FeatureService and Fileinstall

----


> Race condition between FeatureService and Fileinstall
> -----------------------------------------------------
>
>                 Key: KARAF-5371
>                 URL: https://issues.apache.org/jira/browse/KARAF-5371
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-feature
>    Affects Versions: 4.1.2
>            Reporter: J. Br├ębec
>            Assignee: Guillaume Nodet
>            Priority: Critical
>
> If a bundle is installed when the FeatureService is started, then it is possible that
this bundle is not associated to the default region. as a consequence, every services exported
by this bundle are not visible from the osgi container, until karaf is restarted.
> A real usecase :
> - A new karaf distribution, with a blueprint file in a folder managed by fileinstall
;
> - When the distribution is started, as fileinstall is started before the feature bundle,
and the folder are watched asynchronously, the blueprint file is installed before or in the
same time the featureservice is started
> => the services exported by the blueprint file are not visible
> This race condition is located in the FeatureService activator : the digraph is loaded,
and every bundle not known are added to the default region. then, it subscribes a bundle-listener
: If a bundle X is installed between the digraph loading and the subscription of the bundle
listener, then this bundle X is not attached to the default region.
> On my machine, this issue happens 70% of the time on a cold start.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message