Hi Carsten, Don't disable MVCC unless you want your database with unpredictable data. Rather search in documentation. Look at:
- https://github.com/orientechnologies/orientdb/wiki/Graph-Database-Tinkerpop#transactions-1 - https://github.com/orientechnologies/orientdb/wiki/Troubleshooting-Java#oconcurrentmodificationexception-cannot-update-record-xy-in-storage-z-because-the-version-is-not-the-latest-probably-you-are-updating-an-old-record-or-it-has-been-modified-by-another-user-dbva-yourvb Lvc@ On 15 July 2014 17:33, Carsten Zerbst <[email protected]> wrote: > 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. > -- --- 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.
