Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 370297

Summary: Possibility of a deadlock between merging collection into shared cache and IndirectList
Product: z_Archived Reporter: Vikram Bhatia <vikram.jeet.bhatia>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: michaelnielson
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Proposed Fix none

Description Vikram Bhatia CLA 2012-02-01 02:00:29 EST
There is a possibility of a deadlock while merging a collection into the shared cache and IndirectList when Vector is used.
Comment 1 Vikram Bhatia CLA 2012-02-01 02:07:51 EST
ContainerPolicy.mergeChanges() currently synchronize on target value or its delegate if instance of an IndirectCollection while merging the changes from the change set, i.e, removing and adding objects to the collection from the change set. This can cause a possible deadlock scenario while using native ORM if Vector is being used for the collection.
Comment 2 Vikram Bhatia CLA 2012-02-10 02:36:29 EST
Created attachment 210836 [details]
Proposed Fix
Comment 3 Vikram Bhatia CLA 2012-02-10 05:14:58 EST
Fixed in main trunk with r10833.
Comment 4 Lukas Jungmann CLA 2015-05-18 16:02:59 EDT
*** Bug 413775 has been marked as a duplicate of this bug. ***
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:32:19 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink