You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Richard S. Hall (JIRA)" <ji...@apache.org> on 2011/08/24 16:14:29 UTC

[jira] [Created] (FELIX-3082) [Framework] Bundles not allowed to add listeners while in STOPPING state

[Framework] Bundles not allowed to add listeners while in STOPPING state
------------------------------------------------------------------------

                 Key: FELIX-3082
                 URL: https://issues.apache.org/jira/browse/FELIX-3082
             Project: Felix
          Issue Type: Bug
          Components: Framework, Specification compliance
    Affects Versions: framework-3.2.2
            Reporter: Richard S. Hall
            Assignee: Richard S. Hall
            Priority: Minor
             Fix For: framework-4.0.0


In framework 3.2.0 we tried to fix a race condition where bundles could continue to add listeners even after they had been stopped (FELIX-2748). As part of that fix, we made it so that bundles could no longer add listeners while in the STOPPING state, which is too restrictive from a spec point of view. We need to allow this again, but make sure we don't reintroduce the original issue we were trying to fix.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (FELIX-3082) [Framework] Bundles not allowed to add listeners while in STOPPING state

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-3082?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard S. Hall closed FELIX-3082.
----------------------------------

    Resolution: Fixed

Modified framework to allow bundles to add listeners/services while in the STOPPING state. The only non-obvious issue was that we had to invalidate the bundle context early to avoid race conditions where runaway threads in bundles could still do stuff after their activator stop() method had returned.

> [Framework] Bundles not allowed to add listeners while in STOPPING state
> ------------------------------------------------------------------------
>
>                 Key: FELIX-3082
>                 URL: https://issues.apache.org/jira/browse/FELIX-3082
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework, Specification compliance
>    Affects Versions: framework-3.2.2
>            Reporter: Richard S. Hall
>            Assignee: Richard S. Hall
>            Priority: Minor
>             Fix For: framework-4.0.0
>
>
> In framework 3.2.0 we tried to fix a race condition where bundles could continue to add listeners even after they had been stopped (FELIX-2748). As part of that fix, we made it so that bundles could no longer add listeners while in the STOPPING state, which is too restrictive from a spec point of view. We need to allow this again, but make sure we don't reintroduce the original issue we were trying to fix.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira