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

Bug 330906

Summary: RepositorySynchronizer Thread might die
Product: [Modeling] EMF Reporter: Pascal Lehmann <pascal.lehmann>
Component: cdo.coreAssignee: Pascal Lehmann <pascal.lehmann>
Status: CLOSED FIXED QA Contact: Eike Stepper <stepper>
Severity: normal    
Priority: P3    
Version: 4.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: offline-01
Attachments:
Description Flags
Patch v1 - ready to be committed none

Description Pascal Lehmann CLA 2010-11-23 07:06:38 EST
The ReplicateRunnable lacks a try-catch block, so whenever an Exception is thrown (eg. problem caused by session disconnects) the QueueRunner thread dies and no more QueueRunnables will be processed.

Maybe the QueueRunner should protect itself?
Comment 1 Eike Stepper CLA 2010-11-29 04:53:33 EST
Created attachment 184018 [details]
Patch v1 - ready to be committed

Fixed by not letting the Worker break its run() loop on exceptions from a work item.
Comment 2 Pascal Lehmann CLA 2010-11-29 06:43:12 EST
Committed Patch v1 to HEAD.
Comment 3 Eike Stepper CLA 2011-06-23 03:39:06 EDT
Available in R20110608-1407