From issues-return-20607-apmail-karaf-issues-archive=karaf.apache.org@karaf.apache.org Thu Oct 2 21:21:34 2014 Return-Path: X-Original-To: apmail-karaf-issues-archive@minotaur.apache.org Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 849A717547 for ; Thu, 2 Oct 2014 21:21:34 +0000 (UTC) Received: (qmail 38537 invoked by uid 500); 2 Oct 2014 21:21:34 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 38500 invoked by uid 500); 2 Oct 2014 21:21:34 -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 38487 invoked by uid 99); 2 Oct 2014 21:21:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Oct 2014 21:21:34 +0000 Date: Thu, 2 Oct 2014 21:21:34 +0000 (UTC) From: "Andre Lanouette (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KARAF-3258) KarService returns immediately after Kar install MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KARAF-3258?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14157201#comment-14157201 ] Andre Lanouette commented on KARAF-3258: ---------------------------------------- It looks like this new comportment comes from the refactoring of the installFeatures function of FeatureServiceImpl. Features are now started in separate thread by the doProvisionInThread method at the end of the installFeatures function. Is this an expected comportment or is this a potential regression? > KarService returns immediately after Kar install > ------------------------------------------------ > > Key: KARAF-3258 > URL: https://issues.apache.org/jira/browse/KARAF-3258 > Project: Karaf > Issue Type: Bug > Components: karaf-core, karaf-kar > Affects Versions: 3.0.2 > Reporter: Andre Lanouette > Priority: Blocker > > In Karaf 3.0.x (up to 3.0.1), when deploying a KAR archive programatically using the KarService.install(URI) method , the KAR archive would get installed, its features would get started, and only then the method would return. This can be very useful when we want to control precisely a particular sequence of kar and service start and registration. > With the current version of Karaf-3.0.2-SNAPSHOT, the KarService return right after the installation of the kar archive. Features do not get started before the method returns. > This currently breaks our production build and tests because our plugin load order sequence cannot be guaranteed anymore. -- This message was sent by Atlassian JIRA (v6.3.4#6332)