I also get the following exception under these circumstances: 2014-12-19 14:48:59.539 ERROR 2968 --- [nio-9000-exec-5] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is com.orientechnologies.orient.core.exception.OTransactionException: Transaction was committed more times than it is started.] with root cause
com.orientechnologies.orient.core.exception.OTransactionException: Transaction was committed more times than it is started. at com.orientechnologies.orient.core.tx.OTransactionOptimistic.commit(OTransactionOptimistic.java:146) at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.commit(ODatabaseDocumentTx.java:2261) at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.commit(ODatabaseDocumentTx.java:2231) at com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.commit(ONetworkProtocolBinary.java:1009) at com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.executeRequest(ONetworkProtocolBinary.java:342) at com.orientechnologies.orient.server.network.protocol.binary.OBinaryNetworkProtocolAbstract.execute(OBinaryNetworkProtocolAbstract.java:201) at com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:65) Which kind of demonstrates we are still having transactional stuff working. Regards Wendy On Friday, 19 December 2014 12:59:50 UTC, Lvc@ wrote: > > Hi Wendy, > OrientDB uses an optimistic approach (no lock on the server side), so you > should manage the situation another client/thread modified the same record > and just retry it again. Take a look at the documentation: > > > http://www.orientechnologies.com/docs/last/orientdb.wiki/Troubleshooting-Java.html#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 19 December 2014 at 13:21, Wendy Cameron <[email protected] > <javascript:>> wrote: >> >> Hi All >> >> We are experiencing a continuos problem with the following exceptions: >> >> 2014-12-16 12:39:07.612 ERROR 4563 --- [nio-9000-exec-8] >> o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet >> [dispatcherServlet] in context with path [] threw exception [Request >> processing failed; nested exception is >> com.orientechnologies.orient.core.exception.OConcurrentModificationException: >> >> Cannot UPDATE the record #19:977 because the version is not the latest. >> Probably you are updating an old record or it has been modified by another >> user (db=v0 your=v11)] with root cause >> >> com.orientechnologies.orient.core.exception.OConcurrentModificationException: >> >> Cannot UPDATE the record #19:977 because the version is not the latest. >> Probably you are updating an old record or it has been modified by another >> user (db=v0 your=v11) >> at >> com.orientechnologies.orient.core.conflict.OVersionRecordConflictStrategy.checkVersions(OVersionRecordConflictStrategy.java:54) >> at >> com.orientechnologies.orient.core.conflict.OVersionRecordConflictStrategy.onUpdate(OVersionRecordConflictStrategy.java:41) >> at >> com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.checkAndIncrementVersion(OAbstractPaginatedStorage.java:1777) >> at >> com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.doUpdateRecord(OAbstractPaginatedStorage.java:1417) >> at >> com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.commitEntry(OAbstractPaginatedStorage.java:1856 >> at >> com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.commit(OAbstractPaginatedStorage.java:860) >> at >> com.orientechnologies.orient.core.tx.OTransactionOptimistic.doCommit(OTransactionOptimistic.java:455) >> at >> com.orientechnologies.orient.core.tx.OTransactionOptimistic.commit(OTransactionOptimistic.java:142) >> at >> com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.commit(ODatabaseDocumentTx.java:2261) >> at >> com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.commit(ODatabaseDocumentTx.java:2231) >> at >> com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.commit(ONetworkProtocolBinary.java:1009) >> at >> com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.executeRequest(ONetworkProtocolBinary.java:342) >> at >> com.orientechnologies.orient.server.network.protocol.binary.OBinaryNetworkProtocolAbstract.execute(OBinaryNetworkProtocolAbstract.java:201) >> at >> com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:65) >> We are using OrientDB 2.0 - M3 we are also doing all our persisting >> through spring-orient-data and we see this message frequently but not >> deterministically. I.E we dont get it every time we save. >> We have reduced the web server down to a single thread using >> >> server.tomcat.max-threads: 1 >> >> We are also certain from test cases this does not occur in a single >> threaded environment and the above fix does seem to eleviate the problem. >> >> Does anyone know what the issue have a suggested work around thoughts on >> how we can trouble shoot this? >> >> >> Regards Wendy >> >> >> -- >> >> --- >> 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] <javascript:>. >> 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.
