Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 325097 - Last object ID wrong in SynchronizableRepository.
Summary: Last object ID wrong in SynchronizableRepository.
Status: CLOSED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: cdo.core (show other bugs)
Version: 4.0   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Eike Stepper CLA
QA Contact: Eike Stepper CLA
URL:
Whiteboard: offline-01
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-13 06:39 EDT by Erwin Betschart CLA
Modified: 2011-06-23 03:42 EDT (History)
0 users

See Also:


Attachments
Testcase (5.74 KB, patch)
2010-09-13 11:03 EDT, Erwin Betschart CLA
stepper: iplog+
Details | Diff
Patch v1 - for future reference (15.90 KB, patch)
2010-09-14 02:10 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 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