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

Bug 325097

Summary: Last object ID wrong in SynchronizableRepository.
Product: [Modeling] EMF Reporter: Erwin Betschart <erwin>
Component: cdo.coreAssignee: Eike Stepper <stepper>
Status: CLOSED FIXED QA Contact: Eike Stepper <stepper>
Severity: major    
Priority: P3    
Version: 4.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard: offline-01
Attachments:
Description Flags
Testcase
stepper: iplog+
Patch v1 - for future reference none

Description Erwin Betschart CLA 2010-09-13 06:39:28 EDT
Build Identifier: 4.0

The last object id is not updated during runtime in all SynchronizableRepositories (OfflineClone, FailOverParticipant).

-> First call of LongIDStore.getNextCDOID delivers ID 1 (for non-local branches).

For the OfflineClone this is not a big issue because all non-local commits are done on the master not locally on the client.
In FailOverParticipant the problem occurs only after a redundancy switch.

Reproducible: Always

Steps to Reproduce:
1. Setup a master / backup FailOverParticipant scenario
2. Do a master backup switch.
3. Commit a new object on the new master repository.
Comment 1 Erwin Betschart CLA 2010-09-13 11:03:18 EDT
Created attachment 178748 [details]
Testcase

I confirm to
1) The number of lines that you changed is smaller than 250.
2) You are the only author of these changed lines.
3) You apply the EPL to these changed lines.
Comment 2 Eike Stepper CLA 2010-09-14 02:10:16 EDT
Created attachment 178786 [details]
Patch v1 - for future reference
Comment 3 Eike Stepper CLA 2010-09-14 02:10:59 EDT
Committed to HEAD
Comment 4 Eike Stepper CLA 2011-06-23 03:42:19 EDT
Available in R20110608-1407