[jboss-jira] [JBoss JIRA] Resolved: (JGRP-386) RequestCorrelator thread safety issue
Bela Ban (JIRA)
jira-events at lists.jboss.org
Thu Mar 8 05:28:22 EST 2007
[ http://jira.jboss.com/jira/browse/JGRP-386?page=all ]
Bela Ban resolved JGRP-386.
---------------------------
Resolution: Done
applied to 2.4.1 SP1 (should be applied to 2.5 as well)
> RequestCorrelator thread safety issue
> -------------------------------------
>
> Key: JGRP-386
> URL: http://jira.jboss.com/jira/browse/JGRP-386
> Project: JGroups
> Issue Type: Bug
> Affects Versions: 2.4
> Reporter: Bela Ban
> Assigned To: Bela Ban
> Fix For: 2.4.1 SP1
>
> Attachments: oxley.diff
>
>
> [Dave Oxley]
> We have had a deadlock issue with JGroups. The same issue affects 2.2.8 and 2.4.0. The call_stack in blocks.RequestCorrelator is a class variable and is set when a message is processed in util.Scheduler with deadlock_detection set to true. However if multiple threads call sendRequest in blocks.RequestCorrelator then they pick up the call_stack that may not be relevant to that request. This is most evident when concurrent_processing is also set to true as the call_stack grows permanently. The attached patch (against the 2.4 branch) makes call_stack a ThreadLocal and is set by the util.ReusableThread used to process the request. I've also changed the setConcurrentProcessing methods so that they work after the various objects have already been constructed.
--
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