Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 327630 - ConcurrentModificationException in BranchRevisionCache
Summary: ConcurrentModificationException in BranchRevisionCache
Status: CLOSED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: cdo.core (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Eike Stepper CLA
QA Contact: Eike Stepper CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-13 03:13 EDT by Eike Stepper CLA
Modified: 2012-09-21 06:51 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.