[jboss-jira] [JBoss JIRA] Commented: (JGRP-933) NAKACK/UNICAST: eager lock releasing not respected

Bela Ban (JIRA) jira-events at lists.jboss.org
Wed Mar 18 13:33:22 EDT 2009


    [ https://jira.jboss.org/jira/browse/JGRP-933?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12458004#action_12458004 ] 

Bela Ban commented on JGRP-933:
-------------------------------

The perf.Test works fine with removing the locks. Looks like we should be able to only use the atomic boolean 'processing' variable !

> NAKACK/UNICAST: eager lock releasing not respected
> --------------------------------------------------
>
>                 Key: JGRP-933
>                 URL: https://jira.jboss.org/jira/browse/JGRP-933
>             Project: JGroups
>          Issue Type: Bug
>            Reporter: Bela Ban
>            Assignee: Bela Ban
>             Fix For: 2.9
>
>
> In both NAKACK and UNICAST, we have atomic booleans, which are consulted before trying to acquire the lock. So if a lock is released eagerly in a ProtocolStack.down() call, although the lock is released, the atomic var isn't, and so subsequent threads will still not be able to process different messages.
> A simple solution would be to release the lock *and* the atomic var in down().
> OTOH, we should see whether we can use either locks or atomic vars, but not *both*.
> This will need to be redesigned anyway with scopes in place (https://jira.jboss.org/jira/browse/JGRP-822).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list