Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] Problem with resource after transaction rollback
[CDO] Problem with resource after transaction rollback [message #890123] Thu, 21 June 2012 08:12 Go to next message
thomas huster is currently offline thomas husterFriend
Messages: 21
Registered: June 2012
Junior Member
Hello,

while doing a test with CDO (4.1) resources I came across the following problem. If I add an object to a resource, rollback, and then try to add the object again. The content size of the resource was 0 as expected after the rollback, but was not 1 after I added the object again.

1. create transaction
2. create resource from transaction
3. add object to resouce -> resource content size 1
4. transaction rollback -> resource content size 0
5. add same object to resource -> resource content size 0 ???

The problem is that the rollback resets the content list of the resource, but the eResource reference of the object is not. If I remove all newly added objects from the resource before doing the rollback, everything works as expected.

Is this behavior a bug or a feature?

cheers,
thomas
Re: [CDO] Problem with resource after transaction rollback [message #890798 is a reply to message #890123] Sat, 23 June 2012 04:15 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 21.06.2012 10:12, schrieb thomas huster:
> Hello,
>
> while doing a test with CDO (4.1) resources I came across the following problem. If I add an object to a resource,
> rollback, and then try to add the object again. The content size of the resource was 0 as expected after the rollback,
> but was not 1 after I added the object again.
>
> 1. create transaction
> 2. create resource from transaction
> 3. add object to resouce -> resource content size 1
> 4. transaction rollback -> resource content size 0
> 5. add same object to resource -> resource content size 0 ???
>
> The problem is that the rollback resets the content list of the resource, but the eResource reference of the object is
> not. If I remove all newly added objects from the resource before doing the rollback, everything works as expected.
>
> Is this behavior a bug or a feature?
At least it sounds like a bug. I'd need a buzilla to start investigations...

Cheers
/Eike

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


Re: [CDO] Problem with resource after transaction rollback [message #890960 is a reply to message #890798] Sat, 23 June 2012 15:29 Go to previous message
thomas huster is currently offline thomas husterFriend
Messages: 21
Registered: June 2012
Junior Member
Created bugzilla 383370
Previous Topic:EMF model to Property bag
Next Topic:Using refactoring participants with EMF
Goto Forum:
  


Current Time: Tue Apr 23 17:13:21 GMT 2024

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

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

Back to the top