[jboss-jira] [JBoss JIRA] (WFLY-1693) ConcurrentModificationException when iterating over Host.getDeployments()
Tomaz Cerar (JIRA)
jira-events at lists.jboss.org
Thu Jul 18 14:20:10 EDT 2013
[ https://issues.jboss.org/browse/WFLY-1693?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tomaz Cerar resolved WFLY-1693.
-------------------------------
Fix Version/s: 8.0.0.Alpha3
Resolution: Done
> ConcurrentModificationException when iterating over Host.getDeployments()
> -------------------------------------------------------------------------
>
> Key: WFLY-1693
> URL: https://issues.jboss.org/browse/WFLY-1693
> Project: WildFly
> Issue Type: Bug
> Components: Web (Undertow)
> Affects Versions: 8.0.0.Alpha2
> Reporter: Ken Finnigan
> Assignee: Tomaz Cerar
> Fix For: 8.0.0.Alpha3
>
>
> Though I understand the reasoning behind using Collections.unmodifiableSet() for the deployments returned from Host.getDeployments(), as its backed by the underlying Set this can still be a problem.
> In making GateIn work on Wildfly, I found that on occasion when iterating over Host.getDeployments() during container startup, I would encounter a ConcurrentModificationException if a new Deployment was added at the same point I was looping through the existing deployments by calling Iterator.next()
> It would be great if the Collection returned from Host.getDeployments() could be a copy of the underlying collection to prevent possible ConcurrentModificationExceptions.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list