aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcel Hanser (JIRA)" <>
Subject [jira] [Updated] (ARIES-867) Deadlock if stopping a blueprint bundle while the blueprint container is in the create state.
Date Thu, 05 Jul 2012 09:23:34 GMT


Marcel Hanser updated ARIES-867:

    Attachment: com.test.deadlock.2.stopper-0.0.1-SNAPSHOT.jar
> Deadlock if stopping a blueprint bundle while the blueprint container is in the create
> ---------------------------------------------------------------------------------------------
>                 Key: ARIES-867
>                 URL:
>             Project: Aries
>          Issue Type: Bug
>          Components: Blueprint
>    Affects Versions: blueprint-0.3.1
>         Environment: Felix 4.0.2, Fileinstall 3.2.4, Pax Logging 1.6.3.
>            Reporter: Marcel Hanser
>         Attachments: com.test.deadlock.1.blueprint-0.0.1-SNAPSHOT.jar, com.test.deadlock.2.stopper-0.0.1-SNAPSHOT.jar,
> Assume a updating mechanism which installs a bundle using fileinstall. It places a bundle
in a folder watched by fileinstall. If the bundle is removed in a short manner a deadlock
may occur. This issue can occur if a bundles blueprintcontainer is registering services during
the create state and the bundle is stopped concurrently. See attached Threaddump. We also
attached a sample environment to reproduce the deadlock.
> For reproduction:
> - start the container in debug mode.
> - put the com.test.deadlock.1.blueprint-0.0.1-SNAPSHOT.jar into the ./load folder and
wait for GRACE_PERIOD state of the blueprint container.
> - set breakpoint on line 3205 in class org.apache.felix.framework.Felix.
> - put the com.test.deadlock.2.stopper-0.0.1-SNAPSHOT.jar into the ./load folder.
> - skip the breakpoint the FIRST time!
> - remove the com.test.deadlock.1.blueprint-0.0.1-SNAPSHOT.jar from ./load folder, fileinstall
will now remove the bundle, wait a until fileinstall loggs the that.
> - resuming now the debugger. This leads to the deadlock and to the attached thread dump.
> Richard S.Hall does describe the problem in the comment here:
> You might consider to register services in a <code>open call</code>, if easily

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message