Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 333459 - Client gets a duplicate OID error
Summary: Client gets a duplicate OID error
Status: CLOSED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: cdo.core (show other bugs)
Version: 4.0   Edit
Hardware: Other other
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Eike Stepper CLA
QA Contact: Eike Stepper CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-04 06:37 EST by Jos Warmer CLA
Modified: 2011-06-23 03:42 EDT (History)
0 users

See Also:


Attachments
Patch v1 (5.27 KB, patch)
2011-01-04 06:53 EST, Eike Stepper CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jos Warmer CLA 2011-01-04 06:37:37 EST
Build Identifier: CDO 4.0, server side only

When multiple users are working on the same repository at a point in time they get an error message "lang.java.IllegalSateException duplicate ID CDOResource@OID4

Reproducible: Sometimes

Steps to Reproduce:
1.Only happens with CDO server running under AIXcannot reproduce when the CDO server runs on Windows
2.
3.
Comment 1 Eike Stepper CLA 2011-01-04 06:51:11 EST
I've prepared a patch for these things:
1) Ignore duplicate registration of identical object in AbstractCDOView.registerObject()
2) Add synchronization on AbstractCDOView.objects to CDOResourceImpl.load()
3) Better exception message
Comment 2 Eike Stepper CLA 2011-01-04 06:53:02 EST
Created attachment 185995 [details]
Patch v1

Note that this issue is almost impossible to reproduce predictably. Please reopen this bug if you see the exception again...
Comment 3 Eike Stepper CLA 2011-01-04 06:53:49 EST
Committed to HEAD
Comment 4 Eike Stepper CLA 2011-06-23 03:42:22 EDT
Available in R20110608-1407