]
Dennis Reed updated JBAS-9481:
------------------------------
Attachment: test.jar
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: