You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "David Jencks (JIRA)" <ji...@apache.org> on 2014/06/18 21:36:25 UTC

[jira] [Created] (FELIX-4538) [DS] problem with stale references with "triangle" of static references

David Jencks created FELIX-4538:
-----------------------------------

             Summary: [DS] problem with stale references with "triangle" of static references
                 Key: FELIX-4538
                 URL: https://issues.apache.org/jira/browse/FELIX-4538
             Project: Felix
          Issue Type: Bug
          Components: Declarative Services (SCR)
    Affects Versions: scr-1.8.2
            Reporter: David Jencks
            Assignee: David Jencks
             Fix For: scr-1.8.2


Lets say you have a service A and DS components B and C, each with a static reference to A, and that C also has a static reference to B. Suppose B and C are immediate or there is some other reason C will be recreated immediately.

If everything is running, and you unregister A, a service event goes out announcing this.

If B gets the event first, it will deactivate and activate immediately.  This causes C to deactivate and reactivate.  However C's service tracker for A has not yet received the notification that A is gone and with current code C will be created with a stale reference to A. (in a moment C is notified that A is gone and gets recreated again)

If C gets the event first, there won't be this problem.



--
This message was sent by Atlassian JIRA
(v6.2#6252)