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

Bug 320355

Summary: Allow write through commits on FailOverParticipant (load balancing)
Product: [Modeling] EMF Reporter: Erwin Betschart <erwin>
Component: cdo.coreAssignee: Eike Stepper <stepper>
Status: CLOSED FIXED QA Contact: Eike Stepper <stepper>
Severity: enhancement    
Priority: P3 Keywords: noteworthy
Version: 4.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard: Power to the People
Attachments:
Description Flags
Idea with a WriteThroughCommitContext
none
Patch v2 - for future reference none

Description Erwin Betschart CLA 2010-07-20 04:38:06 EDT
Build Identifier: 4.0

A FailOverParticipant in state BACKUP should be allowed to make write through commits (like the offline clone) to the master repository.

Reproducible: Always
Comment 1 Eike Stepper CLA 2010-07-20 04:55:48 EDT
Created attachment 174716 [details]
Idea with a WriteThroughCommitContext

I'd prefer to use the remote session of the BACKUP's repository synchronizer directly to open a transaction on the MASTER. Please test if that suits your need and we can close this as WORKSFORME.
Comment 2 Eike Stepper CLA 2010-07-20 05:11:06 EDT
Please reopen if the approach in comment #1 is not adequate for you.
Comment 3 Erwin Betschart CLA 2010-08-06 11:16:16 EDT
Your proposal has two main drawbacks in our case:

1. On state change of the repository the remote session gets deactivated / activated. Therefore I would have to rebuild the data structure on state change.

2. The remote session does not cache the revisions.
Comment 4 Eike Stepper CLA 2010-08-08 03:43:51 EDT
Created attachment 176102 [details]
Patch v2 - for future reference

This new feature must be explicitely enabled in CDOServerUtil.createFailoverParticipant(), see last parameter "allowBackupCommits".
Comment 5 Eike Stepper CLA 2010-08-08 03:44:12 EDT
Committed to HEAD
Comment 6 Eike Stepper CLA 2011-06-23 03:41:41 EDT
Available in R20110608-1407