Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] RemoteDeltas always null with conflict resolver
[CDO] RemoteDeltas always null with conflict resolver [message #1066357] Tue, 02 July 2013 10:12 Go to next message
Laurent Odermatt is currently offline Laurent OdermattFriend
Messages: 13
Registered: May 2013
Junior Member
Hello,

I'm working on a custom conflict resolver, which extends AbstractObjectConflictResolver.
I overrode the resolveConflict(CDOObject conflict,
CDORevision oldRemoteRevision, CDORevisionDelta localDelta,
CDORevisionDelta remoteDelta, List<CDORevisionDelta> allRemoteDeltas)method.

When there are conflicts, the method is called, there is no problem with the localDelta
but the remote one is always null. (remoteDelta == null and allRemoteDeltas is an
empty List).
I tried with resolveConflicts(Map<CDOObject,Pair<CDORevision,CDORevisionDelta>> conflicts, List<CDORevisionDelta> allRemoteDeltas)
with the same result.

I'm working in Legacy mode.

Am I doing something wrong? Why can't I get the remoteDelta?

Regards,

Laurent
Re: [CDO] RemoteDeltas always null with conflict resolver [message #1138864 is a reply to message #1066357] Tue, 15 October 2013 11:26 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Hi Laurent,

I just noticed that your old question stayed unanswered. Sorry!

I think the AbstractObjectConflictResolver is only extended by deprecated conflict resolvers. You should try the newer
CDOMergingConflictResolver. Please note that internally it's a complex beast and might still suffer from some bugs that
our tests don't detect. We'd appreciate your feedback ;-)

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper



Am 02.07.2013 12:12, schrieb Laurent Odermatt:
> Hello,
>
> I'm working on a custom conflict resolver, which extends AbstractObjectConflictResolver.
> I overrode the resolveConflict(CDOObject conflict,
> CDORevision oldRemoteRevision, CDORevisionDelta localDelta,
> CDORevisionDelta remoteDelta, List<CDORevisionDelta> allRemoteDeltas)method.
>
> When there are conflicts, the method is called, there is no problem with the localDelta
> but the remote one is always null. (remoteDelta == null and allRemoteDeltas is an empty List).
> I tried with resolveConflicts(Map<CDOObject,Pair<CDORevision,CDORevisionDelta>> conflicts, List<CDORevisionDelta>
> allRemoteDeltas)
> with the same result.
>
> I'm working in Legacy mode.
>
> Am I doing something wrong? Why can't I get the remoteDelta?
>
> Regards,
>
> Laurent
>


Previous Topic:[CDO] AbstractCDOIDLong
Next Topic:[CDO] Branch deletion
Goto Forum:
  


Current Time: Fri Apr 26 11:47:21 GMT 2024

Powered by FUDForum. Page generated in 0.02952 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top