Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 316867 - Raw replication fails after recovering from non-graceful shutdown
Summary: Raw replication fails after recovering from non-graceful shutdown
Status: CLOSED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: cdo.core (show other bugs)
Version: 3.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Eike Stepper CLA
QA Contact: Eike Stepper CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-15 05:03 EDT by Erwin Betschart CLA
Modified: 2010-10-12 04:04 EDT (History)
1 user (show)

See Also:


Attachments
Patch for future reference (4.52 KB, patch)
2010-06-15 05:06 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-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.