[jboss-jira] [JBoss JIRA] (JBAS-9481) race condition can break HASingleton functionality

Dennis Reed (JIRA) jira-events at lists.jboss.org
Wed Apr 4 15:51:47 EDT 2012


Dennis Reed created JBAS-9481:
---------------------------------

             Summary: race condition can break HASingleton functionality
                 Key: JBAS-9481
                 URL: https://issues.jboss.org/browse/JBAS-9481
             Project: Application Server 3  4  5 and 6
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: Clustering
    Affects Versions: JBossAS-5.1.0.GA
            Reporter: Dennis Reed
            Assignee: Paul Ferraro
         Attachments: test.jar

HASingletonImpl#registerDRMListener has a race condition with partitionTopologyChanged, which can cause views to be processed
out of order, and HASingletons to be started when they should be stopped, or stopped when they should be started.

The problem is that the thread calling registerDRMListener (which calls partitionTopologyChanged) is not synchronized against other threads that call partitionTopologyChanged.

This was introduced by the fix for https://issues.jboss.org/browse/JBAS-2647.

To fix the issue, partitionTopology must process the view saved in viewReference in the correct order, and registerDRMListener's 
call to partitionTopology must be synchronized against other threads calling it (without causing a regression of JBAS-2647).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list