[jboss-jira] [JBoss JIRA] Created: (JBAS-5631) Access to HAPartiiton membership is not thread-safe

Paul Ferraro (JIRA) jira-events at lists.jboss.org
Thu Jun 12 13:35:33 EDT 2008


Access to HAPartiiton membership is not thread-safe
---------------------------------------------------

                 Key: JBAS-5631
                 URL: http://jira.jboss.com/jira/browse/JBAS-5631
             Project: JBoss Application Server
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: Clustering
    Affects Versions: JBossAS-5.0.0.Beta4,  JBossAS-5.0.0.Beta3, JBossAS-4.2.2.GA, JBossAS-4.2.1.GA, JBossAS-4.2.0.GA, JBossAS-4.2.0.CR2, JBossAS-5.0.0.Beta2, JBossAS-4.2.0.CR1, JBossAS-5.0.0.Beta1, JBossAS-4.0.5.GA, JBossAS-4.0.5.CR1, JBossAS-4.0.4.GA, JBossAS-4.0.4.CR2, JBossAS-3.2.8.SP1, JBossAS-3.2.8 Final, JBossAS-4.0.4RC1,  JBossAS-3.2.8RC1, JBossAS-4.0.3 SP1, JBossAS-4.0.3 Final,  JBossAS-4.0.3RC2,  JBossAS-4.0.3RC1, JBossAS-4.0.2 Final,  JBossAS-4.0.2RC1, JBossAS-4.0.1 SP1, JBossAS-4.0.1 Final, JBossAS-4.0.1RC1, JBossAS-4.0.0 Final
            Reporter: Paul Ferraro
         Assigned To: Brian Stansberry


There are 2 problems with the current implementation.
1. Currently, the membership collections, while synchronized, are both non-volatile and updated in a non-final fashion, so concurrent access by both view changes and rpc invocations is not thread-safe.
2. Membership is expressed in 4 different vectors.  During view change, these vectors are not updated atomically.

To address both problems, the 4 vectors ought to be encapsulated into a single volatile, immutable object.

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

        



More information about the jboss-jira mailing list