On 18/08/2014 13:55, Luca Garulli wrote:
Hi Nicolas,
Can you create indexes at the beginning and see if everything is ok? You
could get a Non-Tx instance to do that avoiding this message:
ATTENTION: Requested command 'create index 'vertices'' must be executed
outside active transaction: the transaction will be committed and reopen
right after it. To avoid this behavior execute it outside a transaction
Example:
g = new OrientGraphNoTx("...");
It appears that, when using a non-transacted graph, I've got bugs on
vertices deletion. More precisely, when i delete a vertex which has
remaining edges I get
com.orientechnologies.orient.core.exception.ORecordNotFoundException:
The record with id #12:0 was not found
at
com.orientechnologies.orient.core.db.raw.ODatabaseRaw.delete(ODatabaseRaw.java:316)
at
com.orientechnologies.orient.core.db.record.ODatabaseRecordAbstract.executeDeleteRecord(ODatabaseRecordAbstract.java:1235)
at
com.orientechnologies.orient.core.tx.OTransactionNoTx.deleteRecord(OTransactionNoTx.java:116)
at
com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.delete(ODatabaseRecordTx.java:338)
at
com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.delete(ODatabaseRecordTx.java:40)
at
com.orientechnologies.orient.core.record.ORecordAbstract.delete(ORecordAbstract.java:340)
at
com.tinkerpop.blueprints.impls.orient.OrientVertex.deleteEdgeIfAny(OrientVertex.java:354)
at
com.tinkerpop.blueprints.impls.orient.OrientVertex.removeEdges(OrientVertex.java:234)
at
com.tinkerpop.blueprints.impls.orient.OrientVertex.remove(OrientVertex.java:576)
at
com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.removeVertex(OrientBaseGraph.java:579)
at
com.dooapp.gaedo.blueprints.GraphUtils.removeSafely(GraphUtils.java:429)
at
com.dooapp.gaedo.blueprints.AbstractBluePrintsBackedFinderService$DelegatingDriver.removeSafely(AbstractBluePrintsBackedFinderService.java:109)
A fast debug session reveals this happens for the underlying record of
the to-be-deleted edge.
What is even stranger is that the edge isn't deleted at user level :
OrientDB should delete it ... And, obviously, that delete operation DO
WORK on transacted graph ...
--
Nicolas Delsaux
--
---
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 [email protected].
For more options, visit https://groups.google.com/d/optout.