Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] Issues when trying to import changes from PushTransaction in legacy mode
[CDO] Issues when trying to import changes from PushTransaction in legacy mode [message #733622] Wed, 05 October 2011 08:37 Go to next message
Alex Lagarde is currently offline Alex LagardeFriend
Messages: 193
Registered: May 2010
Senior Member

Hi everyone !

I'm facing issues when trying to import changes stored in a file through
a PushTransaction.

For example, if I create a new element E1 (in Legacy Mode) and set one
of its attribute to VALUE1, save changes locally, close and reopen my
PushTransaction :

in CDOTransactionImpl.importChanges() :
- E1 is created through call to newInstance(revision) ("// Create new
Objects" step)
- E1 is added to its container when applying the revision deltas
("//Apply deltas" step)
- but we never set E1.setMyFeatureValue(VALUE1)

when and how should the last step occur ? Knowing this would help me
debugging and write a CDO testcase repoducing the issue.

Originally I though it was due to SavePoints reconstruction issues, a
bit like https://bugs.eclipse.org/bugs/show_bug.cgi?id=352977 , as we
use a lot savepoints in our software.
But even when I deactivate our SavePoint logic (we set a SavePoint any
time an EMFTransaction is commited, so that rollback of this transaction
correctly reset CDOObjects
in state CLEAN to avoid conflicts, see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=352204), I get the same issue.

Thanks by advance for your replies :)
Regards,
Alex
Re: [CDO] Issues when trying to import changes from PushTransaction in legacy mode [message #733631 is a reply to message #733622] Wed, 05 October 2011 08:47 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Hi Alex,

Is it possible that you write a small test case and execute it in the "CDO AllTests (MEM legacy)" launch config?

Cheers
/Eike

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



Am 05.10.2011 10:37, schrieb Alex Lagarde:
> Hi everyone !
>
> I'm facing issues when trying to import changes stored in a file through a PushTransaction.
>
> For example, if I create a new element E1 (in Legacy Mode) and set one of its attribute to VALUE1, save changes
> locally, close and reopen my PushTransaction :
>
> in CDOTransactionImpl.importChanges() :
> - E1 is created through call to newInstance(revision) ("// Create new Objects" step)
> - E1 is added to its container when applying the revision deltas ("//Apply deltas" step)
> - but we never set E1.setMyFeatureValue(VALUE1)
>
> when and how should the last step occur ? Knowing this would help me debugging and write a CDO testcase repoducing the
> issue.
>
> Originally I though it was due to SavePoints reconstruction issues, a bit like
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=352977 , as we use a lot savepoints in our software.
> But even when I deactivate our SavePoint logic (we set a SavePoint any time an EMFTransaction is commited, so that
> rollback of this transaction correctly reset CDOObjects
> in state CLEAN to avoid conflicts, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=352204), I get the same issue.
>
> Thanks by advance for your replies :)
> Regards,
> Alex


Re: [CDO] Issues when trying to import changes from PushTransaction in legacy mode [message #733632 is a reply to message #733631] Wed, 05 October 2011 08:51 Go to previous messageGo to next message
Alex Lagarde is currently offline Alex LagardeFriend
Messages: 193
Registered: May 2010
Senior Member

I'm on it, hope that I will manage to simply reproduce the issue (we use
many CDO features like Legacy mode, SavePoints, long lasting locks,
pushTransactions, integration with GMF...).

I'll keep you in tuch !
Alex
Re: [CDO] Issues when trying to import changes from PushTransaction in legacy mode [message #733633 is a reply to message #733632] Wed, 05 October 2011 08:57 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 05.10.2011 10:51, schrieb Alex Lagarde:
> I'm on it, hope that I will manage to simply reproduce the issue (we use many CDO features like Legacy mode,
> SavePoints, long lasting locks, pushTransactions, integration with GMF...).
>
> I'll keep you in tuch !
Thx! And let me know if you need help with the test case.

Cheers
/Eike

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


Re: [CDO] Issues when trying to import changes from PushTransaction in legacy mode [message #733675 is a reply to message #733633] Wed, 05 October 2011 12:02 Go to previous message
Alex Lagarde is currently offline Alex LagardeFriend
Messages: 193
Registered: May 2010
Senior Member

I've filed a bugzilla
https://bugs.eclipse.org/bugs/show_bug.cgi?id=359966 .

I've managed to write a test case, using the metamodel of ticket
https://bugs.eclipse.org/bugs/show_bug.cgi?id=352204 .

As explained in the ticket, you will need to fork the CDOStateMachine to
avoid the bug descibed at
https://bugs.eclipse.org/bugs/show_bug.cgi?id=352204 and see the issue.

Let me know if the patch does not fit you or if you have problem
reproducing the issue.

Important information : I've written the test on the 4.0-maitenance branch.

Regards,
Alex
Previous Topic:[CDO] xref double entries.
Next Topic:[CDO] Integrating authentication and authorization into the CDO server
Goto Forum:
  


Current Time: Tue Apr 16 04:26:27 GMT 2024

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

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

Back to the top