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

Bug 316867

Summary: Raw replication fails after recovering from non-graceful shutdown
Product: [Modeling] EMF Reporter: Erwin Betschart <erwin>
Component: cdo.coreAssignee: Eike Stepper <stepper>
Status: CLOSED FIXED QA Contact: Eike Stepper <stepper>
Severity: normal    
Priority: P3 CC: pascal.lehmann
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Patch for future reference none

Description Erwin Betschart CLA 2010-06-15 05:03:04 EDT
Build Identifier: 3.0

Raw replication fails after recovering from a non-graceful shutdown.

-> NPE

The problem seems to be that the package registry is initialized too late. 
Repository.doActivate()
...
 LifecycleUtil.activate(store);
...
 readPackageUnits();
...

During store activation the packages are needed for recovering from non-graceful shutdown.


Reproducible: Always
Comment 1 Eike Stepper CLA 2010-06-15 05:06:18 EDT
Created attachment 171901 [details]
Patch for future reference
Comment 2 Eike Stepper CLA 2010-06-15 05:06:38 EDT
Committed to HEAD
Comment 3 Eike Stepper CLA 2010-06-29 04:36:32 EDT
Available in 3.0 GA:
http://download.eclipse.org/modeling/emf/cdo/updates/3.0-releases/
Comment 4 Eike Stepper CLA 2010-10-12 04:04:25 EDT
Apologies, the last auto-comment turned out to be wrong (as Pascal pointed out)!

Although 3.0 GA was on June 29, the final GA build was already on June 14, one day before this fix was committed. 

Hence this fix was first released with SR1.