[jboss-jira] [JBoss JIRA] (WFCORE-3948) Potential race condition on deployment of EAR when Class-Path manifest entry is in use
Scott Marlow (Jira)
issues at jboss.org
Wed Nov 27 10:23:01 EST 2019
[ https://issues.jboss.org/browse/WFCORE-3948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13818542#comment-13818542 ]
Scott Marlow commented on WFCORE-3948:
--------------------------------------
{quote}All of my above discussion is wrong; all that's needed is for AttachmentList to be thread safe.{quote}
Do we need the AttachementList to be iteration (thread) safe as well?
As in [CopyOnWriteArrayList|https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CopyOnWriteArrayList.html]?
Or is [SynchronizedList|https://docs.oracle.com/javase/8/docs/api/java/util/Collections.html#synchronizedList-java.util.List-] (not iteration thread safe) enough?
> Potential race condition on deployment of EAR when Class-Path manifest entry is in use
> --------------------------------------------------------------------------------------
>
> Key: WFCORE-3948
> URL: https://issues.jboss.org/browse/WFCORE-3948
> Project: WildFly Core
> Issue Type: Bug
> Components: Server
> Reporter: Stuart Douglas
> Assignee: Brian Stansberry
> Priority: Major
>
> Attachments#ADDITIONAL_MODULES is attached to the top level DU, but modified by sub deployments in ManifestClassPathProcessor#createAdditionalModule without any sort of synchronisation. This can result in ConcurrentModificationException when the list is read/written to by other sub deployments at the same time.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the jboss-jira
mailing list