Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 318988 - Provide an option which prevents removal of still referenced objects
Summary: Provide an option which prevents removal of still referenced objects
Status: CLOSED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: cdo.core (show other bugs)
Version: 3.0   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Eike Stepper CLA
QA Contact: Eike Stepper CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-06 05:53 EDT by Eike Stepper CLA
Modified: 2011-08-04 02:23 EDT (History)
0 users

See Also:


Attachments
Adjusted patch from bug 316434 (45.26 KB, patch)
2010-07-06 06:22 EDT, Eike Stepper CLA
no flags Details | Diff
Adjusted patch from bug 316434 (v2) (41.59 KB, patch)
2010-07-06 07:25 EDT, 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 Eike Stepper CLA 2010-07-06 05:53:41 EDT
Cloned from: 316434: Provide an option which prevents removal of still referenced objects
https://bugs.eclipse.org/bugs/show_bug.cgi?id=316434

Build Identifier: 3.0

CDO should provide an option which prevents (on the server) the removal of objects which are still referenced (incoming references).

Concurrent commits of two client can cause the local consistent model to become inconsistent on the server:
Object A references object B
Client 1: Add C which references B
Client 2: Delete A & B (commit should fail because B is still referenced by C)
(Assuming client did not yet receive the invalidation of the first commit)

Reproducible: Always
Comment 1 Eike Stepper CLA 2010-07-06 06:22:30 EDT
Created attachment 173524 [details]
Adjusted patch from bug 316434
Comment 2 Eike Stepper CLA 2010-07-06 07:25:50 EDT
Created attachment 173530 [details]
Adjusted patch from bug 316434 (v2)
Comment 3 Eike Stepper CLA 2010-07-06 07:31:17 EDT
Committed to R3_0_maintenance
Comment 4 Eike Stepper CLA 2011-06-23 04:30:30 EDT
Moving all open enhancement requests to 4.1
Comment 5 Eike Stepper CLA 2011-07-06 02:40:55 EDT
Reverting the previous status change which was accidental.
Comment 6 Eike Stepper CLA 2011-08-04 02:23:16 EDT
According to comment #3 the version should be 3.0.