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 C2B71200C2B for ; Thu, 2 Mar 2017 10:14:51 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id C15A4160B6F; Thu, 2 Mar 2017 09:14:51 +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 14D68160B61 for ; Thu, 2 Mar 2017 10:14:50 +0100 (CET) Received: (qmail 28010 invoked by uid 500); 2 Mar 2017 09:14:50 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 27998 invoked by uid 99); 2 Mar 2017 09:14:50 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Mar 2017 09:14:50 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 925BEC456C for ; Thu, 2 Mar 2017 09:14:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -2.347 X-Spam-Level: X-Spam-Status: No, score=-2.347 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-2.999, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id nbRb0Qn0a6h6 for ; Thu, 2 Mar 2017 09:14:48 +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 8C65D5FDEA for ; Thu, 2 Mar 2017 09:14:48 +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 7ED46E0A30 for ; Thu, 2 Mar 2017 09:14:46 +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 AC5C524172 for ; Thu, 2 Mar 2017 09:14:45 +0000 (UTC) Date: Thu, 2 Mar 2017 09:14:45 +0000 (UTC) From: "Guillaume Nodet (JIRA)" To: dev@felix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (FELIX-5576) SCR components and factoryPids random issues MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 02 Mar 2017 09:14:51 -0000 [ https://issues.apache.org/jira/browse/FELIX-5576?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Guillaume Nodet reassigned FELIX-5576: -------------------------------------- Assignee: Guillaume Nodet > SCR components and factoryPids random issues > -------------------------------------------- > > Key: FELIX-5576 > URL: https://issues.apache.org/jira/browse/FELIX-5576 > Project: Felix > Issue Type: Bug > Components: Declarative Services (SCR) > Affects Versions: scr-1.8.2 > Reporter: Paolo Antinori > Assignee: Guillaume Nodet > > This affects {{mvn:org.apache.felix/org.apache.felix.scr/1.8.2}}. > There is an issue with SCR, {{ConfigAdmin}} and {{factoryPids}} that lead= s to possible situation when {{ConfigAdmin}} update events are discarded. > The issue is present in case of an interweaving of {{CM_LOCATION_CHANGED}= } event. > If that event is processed, it changes updates the reference of {{TargetP= ID}} with the wrong one (uses {{instance}} one instead than a {{service}} o= ne) basically turning the stored reference unreachable, thus discarding sub= sequent update requests. > The following code fixes the issue. > {code} > =E2=9C=94 /data/repositories/work/felix [org.apache.felix.scr-1.8.2|=E2= =97=8F1=E2=9C=9A 1=E2=80=A6288]=20 > 09:30 $ git diff --cached > diff --git a/src/main/java/org/apache/felix/scr/impl/config/Configuration= Support.java b/src/main/java/org/apache/felix/scr/impl/config/Configuration= Support.java > index e2f63e9..3a15073 100644 > --- a/src/main/java/org/apache/felix/scr/impl/config/ConfigurationSupport= .java > +++ b/src/main/java/org/apache/felix/scr/impl/config/ConfigurationSupport= .java > @@ -357,8 +357,8 @@ public class ConfigurationSupport implements Configur= ationListener > //this is a better match, delete old bef= ore setting new > componentHolder.configurationDeleted( pi= d.getServicePid() ); > } > - componentHolder.configurationUpdated( pid.ge= tServicePid(), configInfo.getProps(), > - configInfo.getChangeCount(), pid ); > + componentHolder.configurationUpdated( target= edPid.getServicePid(), configInfo.getProps(), > + configInfo.getChangeCount(), targete= dPid ); > } > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346)