Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] EMap update problem for the first element
[CDO] EMap update problem for the first element [message #1822772] Fri, 13 March 2020 08:55 Go to next message
Robert Schulk is currently offline Robert SchulkFriend
Messages: 109
Registered: July 2015
Senior Member
We observe the following behavior:

* An object with an empty EMap is added to a resource
* A view gets this object
* A transaction (from a different session) adds an element to the map
* The view tries to get this entry <<<< it does not see it! Also waiting for a longer time does not help

We can prevent this error by either:
a) adding a dummy element to the map right from the start
b) calling map.size() before the map.get() method

Can someone confirm this? For us, it is always reproducable. The workaround also always works for us.

We used the latest build: I20200313-0100
Re: [CDO] EMap update problem for the first element [message #1822778 is a reply to message #1822772] Fri, 13 March 2020 10:49 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6552
Registered: July 2009
Senior Member
Can you please submit a bugzilla and ideally attach a test case? Our test models provide org.eclipse.emf.cdo.tests.model1.Customer.getOrderByProduct()...

Re: [CDO] EMap update problem for the first element [message #1823088 is a reply to message #1822778] Thu, 19 March 2020 10:10 Go to previous messageGo to next message
Robert Schulk is currently offline Robert SchulkFriend
Messages: 109
Registered: July 2015
Senior Member
I created this bugzilla, including a test case:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=561250

At first, I was a bit frustrated when I tried to setup the cdo project in eclipse until I found out about the auto-setup.
This is so awesome. Really good, thanks!
Re: [CDO] EMap update problem for the first element [message #1823118 is a reply to message #1823088] Thu, 19 March 2020 16:38 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6552
Registered: July 2009
Senior Member
Thanks for the test case. I'll look at it when I'm done with my current performance tuning in Net4j.

Have you never used an Oomph setup before? Funny fact: I originally invented it because it became too hard to set up a controlled development environment for CDO ;-)


Previous Topic:[CDO] Repository initialization for mysql databse backend
Next Topic:How to specify composed key in a reference
Goto Forum:
  


Current Time: Sun Apr 11 05:35:14 GMT 2021

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

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

Back to the top