[
https://jira.jboss.org/jira/browse/JBMESSAGING-1434?page=com.atlassian.ji...
]
Howard Gao closed JBMESSAGING-1434.
-----------------------------------
Resolution: Done
Put synchronization block around the code and set flag.
public void shutdownNow()
{
synchronized (tasks)
{
tasks.clear();
shutdown = true;
}
}
Executor shutdownNow() method not synchronized
----------------------------------------------
Key: JBMESSAGING-1434
URL:
https://jira.jboss.org/jira/browse/JBMESSAGING-1434
Project: JBoss Messaging
Issue Type: Bug
Components: Messaging Core
Affects Versions: 1.4.0.SP3.CP04
Environment: Any platform
Reporter: Howard Gao
Assignee: Howard Gao
Priority: Critical
Fix For: 1.4.0.SP3.CP05
The ChildExecutor.shutdownNow() is not properly synchronized and is therefore may cause
NoSuchElementException during runtime.
--
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