felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Schneider (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FELIX-4976) Coordinations are always ORPHANED if they only are on the thread stack
Date Thu, 30 Jul 2015 14:32:04 GMT

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

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

I did not look into assertReferenceEnqueued. It acually does several GCs and waits for 5 seconds.
So the test looks correct.
I added the same functionality to my test and now it also fails. At the moment I have no idea
what is wrong though.
Interestingly the finalize of the CoordinationHolder is called and the coordination is correctly
failed but it does not seem to be garbage collected.


> 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)

Mime
View raw message