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

Bug 318988

Summary: Provide an option which prevents removal of still referenced objects
Product: [Modeling] EMF Reporter: Eike Stepper <stepper>
Component: cdo.coreAssignee: Eike Stepper <stepper>
Status: CLOSED FIXED QA Contact: Eike Stepper <stepper>
Severity: enhancement    
Priority: P3    
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Adjusted patch from bug 316434
none
Adjusted patch from bug 316434 (v2) none

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.