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

Bug 327630

Summary: ConcurrentModificationException in BranchRevisionCache
Product: [Modeling] EMF Reporter: Eike Stepper <stepper>
Component: cdo.coreAssignee: Eike Stepper <stepper>
Status: CLOSED FIXED QA Contact: Eike Stepper <stepper>
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Eike Stepper CLA 2010-10-13 03:13:39 EDT
Cloned from: 327529: ConcurrentModificationException in BranchRevisionCache
https://bugs.eclipse.org/bugs/show_bug.cgi?id=327529

Build Identifier: 4.0

Just recenty stumbled over this stacktrace while testing:

Caused by: java.util.ConcurrentModificationException
	at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)
	at java.util.HashMap$EntryIterator.next(HashMap.java:834)
	at java.util.HashMap$EntryIterator.next(HashMap.java:832)
	at org.eclipse.emf.cdo.internal.common.revision.cache.branch.BranchRevisionCache.getRevisions(BranchRevisionCache.java:206)
	at org.eclipse.emf.internal.cdo.transaction.CDOTransactionImpl.createRevisionAvailabilityInfo(CDOTransactionImpl.java:371)
	at org.eclipse.emf.internal.cdo.transaction.CDOTransactionImpl.merge(CDOTransactionImpl.java:340)
... 42 more

It happened in 1 of our 10'000 random tests, couldn't reproduce since.
But when looking at BranchRevisionCache, it looks as if access to revisionLists is not consistently synchronized.

Reproducible: Sometimes
Comment 1 Eike Stepper CLA 2010-10-13 03:15:59 EDT
Committed to R3_0_maintenance
Comment 2 Eike Stepper CLA 2011-06-23 04:27:15 EDT
Moving all open problem reports to 4.0
Comment 3 Eike Stepper CLA 2012-09-21 06:37:11 EDT
Undoing accidental version change.
Comment 4 Eike Stepper CLA 2012-09-21 06:51:51 EDT
Closing.