Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id F2C1D200CF7 for ; Tue, 19 Sep 2017 11:00:40 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id F111D1609DD; Tue, 19 Sep 2017 09:00:40 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 426651609DB for ; Tue, 19 Sep 2017 11:00:40 +0200 (CEST) Received: (qmail 7447 invoked by uid 500); 19 Sep 2017 09:00:39 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 7436 invoked by uid 99); 19 Sep 2017 09:00:39 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Sep 2017 09:00:39 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id E7158CB2BA for ; Tue, 19 Sep 2017 09:00:38 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id Xf32JBryXs_1 for ; Tue, 19 Sep 2017 09:00:37 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 5B526612AB for ; Tue, 19 Sep 2017 09:00:08 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id E5A0BE0933 for ; Tue, 19 Sep 2017 09:00:07 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 9FCE524137 for ; Tue, 19 Sep 2017 09:00:07 +0000 (UTC) Date: Tue, 19 Sep 2017 09:00:07 +0000 (UTC) From: "Guillaume Nodet (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (KARAF-5371) Race condition between FeatureService and Fileinstall MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 19 Sep 2017 09:00:41 -0000 [ https://issues.apache.org/jira/browse/KARAF-5371?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Guillaume Nodet resolved KARAF-5371. ------------------------------------ Resolution: Fixed > 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=C3=A9bec > Assignee: Guillaume Nodet > Priority: Critical > Fix For: 4.2.0, 4.1.3 > > > If a bundle is installed when the FeatureService is started, then it is p= ossible that this bundle is not associated to the default region. as a cons= equence, every services exported by this bundle are not visible from the os= gi 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 fi= le is installed before or in the same time the featureservice is started > =3D> the services exported by the blueprint file are not visible > This race condition is located in the FeatureService activator : the digr= aph 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)