You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The response I get is:
com.orientechnologies.orient.core.exception.OConcurrentModificationException: Cannot UPDATE the record #12:44 because the version is not the latest. Probably you are updating an old record or it has been modified by another user (db=v5 your=v0)
your=v0 which means that my `"@Version": 5' is ignored.
Am I using an incorrect syntax? I've found no such example in the documentation. Could somebody help me please?
The text was updated successfully, but these errors were encountered:
VERSIONS:
I've noticed this issue reappearing in OrientDB Server v2.0.13 and orientdb-community-2.2.0-beta.
PROBLEM:
I'm getting the same problem as this issue, the version is being ignored when I try to update via http batch api.
ADDITIONALLY, this issue makes it look like the version must be passed for HTTP batch however in the documentation example I do not see the version being passed. http://orientdb.com/docs/last/OrientDB-REST.html#batch
This may be another issue, but I've seen http batch update not return this error in OrientDB 2.1.6 however the update was completely overwriting the document (erasing fields that were not in the update request). The documentation does not specify that update means a partial update so I do not know if this is expected behavior.
$ DATA='{"operations":[{"record":{"@version":1,"@rid":"#9:0","foo":2},"type":"u"}],"transaction":true}'
$ echo $DATA | http -b -a admin:admin POST ":2480/batch/test/"
fails with
com.orientechnologies.orient.core.exception.OConcurrentModificationException: Cannot UPDATE the record #9:0 because the version is not the latest. Probably you are updating an old record or it has been modified by another user (db=v1 your=v0)
Hi All,
I've been trying to execute the following operation against our OrientDB:
The response I get is:
com.orientechnologies.orient.core.exception.OConcurrentModificationException: Cannot UPDATE the record #12:44 because the version is not the latest. Probably you are updating an old record or it has been modified by another user (db=v5 your=v0)
your=v0 which means that my `"@Version": 5' is ignored.
Am I using an incorrect syntax? I've found no such example in the documentation. Could somebody help me please?
The text was updated successfully, but these errors were encountered: