[1.7.8 ObjectDB] Linked entity references null after transaction commit

75 views
Skip to first unread message

Carlo Polisini

unread,
Sep 18, 2014, 5:00:10 AM9/18/14
to orient-...@googlegroups.com
Hi all,
I am using a transaction for storing my entity but I found that after the commit, and not just after the save, linked references of the entity are all null, and from the console I get these messages:

10:31:43.677 [main] ERROR testcase - universe galaxy is null :(
Sep 18, 2014 10:31:43 AM com.orientechnologies.common.log.OLogManager log
WARNING: Record #12:11 references a deleted instance
10:31:43.678 [main] ERROR testcase - universe galaxy is null :(
Sep 18, 2014 10:31:43 AM com.orientechnologies.common.log.OLogManager log
WARNING: Record #12:11 references a deleted instance

where entity Galaxy is linked list in the Entity universe.
It seems to me that transaction is creating temporary references that are removed after the commit, but the entity is not in sync with the db.

The only workaround I found is to reload the entity from the DB (db.load(entity)) after the commit action.

In attach you found the test case if needed, relevant code it's in com.bitdivide.controllers.UniverseController.java


bitdivide.zip

Andrey Lomakin

unread,
Sep 18, 2014, 8:18:21 AM9/18/14
to orient-database
Hi Carlo,
Could you create issue in bug tracker and put there reference of our conversation ?

--

---
You received this message because you are subscribed to the Google Groups "OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orient-databa...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Best regards,
Andrey Lomakin.

Orient Technologies
the Company behind OrientDB

Carlo Polisini

unread,
Sep 18, 2014, 8:56:43 AM9/18/14
to orient-...@googlegroups.com

--

---
You received this message because you are subscribed to a topic in the Google Groups "OrientDB" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/orient-database/8EF_jlh7cns/unsubscribe.
To unsubscribe from this group and all its topics, send an email to orient-databa...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Carlo Polisini
Reply all
Reply to author
Forward
0 new messages