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

Bug 320072

Summary: "Attempt to modify historical revision"-Exception after raw replication.
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:
Attachments:
Description Flags
Patch - back ported from HEAD none

Description Eike Stepper CLA 2010-07-16 02:41:26 EDT
Cloned from: 319552: "Attempt to modify historical revision"-Exception after raw replication.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=319552

Build Identifier: 4.0

We have the following scenario (see attached test-case):
master session with a transaction where the changes are done and an offline session which will go offline and online again.

online:  ---> v1 ---> v2 ---> v3 ---> v4
offline: ---> v1 --/....................../(rawrepl.)--> v2

After the change v1 we go offline, do 3 more changes on online transaction.
Then we go online again, raw replication will start and will deliver changes v2-v4 in one revision delta causing the transaction on the offline clone to update from v1 to v2. When a change on this object is done, the exception is thrown because v4 is expected instead of v2.


Reproducible: Always

Steps to Reproduce:
1. see testcase
Comment 1 Eike Stepper CLA 2010-07-16 03:03:01 EDT
Created attachment 174469 [details]
Patch - back ported from HEAD
Comment 2 Eike Stepper CLA 2010-07-16 03:03:25 EDT
Committed to R3_0_maintenance
Comment 3 Eike Stepper CLA 2011-06-23 04:27:00 EDT
Moving all open problem reports to 4.0
Comment 4 Eike Stepper CLA 2012-09-21 06:51:29 EDT
Closing.