Hallo All,
I'm using the graph API and get OConcurrentModificationException. I tried
to disable the local cache anc mvcc, but without result.
I'm using version 1.7.4.
*Setup:*
Server started with -Ddb.mvcc=false -Dcache.local.enabled=false
Client started with -Ddb.mvcc=false -Dcache.local.enabled=false
*Java code:*
OrientGraph graph = ctx.getSession().getOrientDB().getTx();
try {
// Find parent and child based on unique attribute in DB
OrientVertex parentVTX = ctx.getDbObjectManager().findVertex( graph, oid );
OrientVertex childVTX = ctx.getDbObjectManager().findVertex( graph,
childOID );
OrientEdge edge = graph.addEdge( linkObjectId, parentVT, childVT,
linkClassName );
// set some properties
graph.commit();
} finally {
graph.shutdown();
}
*Error message:*
com.orientechnologies.orient.core.exception.OConcurrentModificationException:
Cannot UPDATE the record #11:10 because the version is not the latest.
Probably you are updating an old record or it has been modified by another
user (db=v26 your=v25)
The record #11:10 is the record of the parent vertex.
What could I do, to avoid this problem ?
Thank you, Carsten
--
---
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.