[ 
https://issues.apache.org/jira/browse/FELIX-4976?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14647563#comment-14647563
 ] 

Christian Schneider commented on FELIX-4976:
--------------------------------------------

I have just updated my pull request. Now only one CT test fails with:
  <testcase name='testOrphanedCoordinationImplicit' time='5.176' 
classname='org.osgi.test.cases.coordinator.junit.OrphanedCoordinationTest'>
    <failure 
type='junit.framework.AssertionFailedError'><![CDATA[junit.framework.AssertionFailedError:
 Coordination was not garbage collected
at junit.framework.Assert.fail(Assert.java:47)

I am not sure if this test is correct though. I added a test that uses a non 
referenced coordination and this test shows that it is correctly failed and 
orphaned. So maybe the ct test just does not wait long enough. I am not sure if 
after a bundle uninstall the garbage collection is guaranteed to run and finish 
directly.

> Coordinations are always ORPHANED if they only are on the thread stack
> ----------------------------------------------------------------------
>
>                 Key: FELIX-4976
>                 URL: https://issues.apache.org/jira/browse/FELIX-4976
>             Project: Felix
>          Issue Type: Bug
>          Components: Coordinator Service
>    Affects Versions: coordinator-1.0.0
>            Reporter: Christian Schneider
>            Assignee: Carsten Ziegeler
>            Priority: Critical
>             Fix For: coordinator-1.0.2
>
>
> The calls below should work but failed as the coordination is regarded as 
> ORPHANED.
> coordinator.begin("test", 0);
> System.gc();
> coordinator.pop().end();
> I can try to provide a fix if you want.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to