-
Notifications
You must be signed in to change notification settings - Fork 871
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OConcurrentModificationException when try to increment a sequence #7046
Comments
Could you try to execute the command at the server side by using a SQL BATCH? |
Should I execute it directly in console by script command ? |
You can do that in your application. What driver are you using? |
The last one 2.2.14 with JAVA. com.orientechnologies.orient.core.exception.OConcurrentModificationException: Cannot UPDATE the record #7:19 because the version is not the latest. Probably you are updating an old record or it has been modified by another user (db=v37013 your=v37012) DB name="" DB name="" Where #7:19 is the sequence. select * from #7:19; +----+-----+---------+-----+----+-----+-------+----------------------------+ How to solve this ? |
Can you catch the exception, reload the sequence and retry again? This is normal with OrientDB, because we don't have locks and everything is optimistic. |
Closing this issue, because of no response after a while. In case this issue is still valid, please comment this. Thanks. |
OrientDB Version, operating system, or hardware.
Operating System
Expected behavior and actual behavior
Increment a sequence using the document API. The actual behavior causes
I've tried increase the SEQUENCE_MAX_RETRY value but without succcess.
OConcurrentModificationException. Do I need change the MVCC config ?
Follow the exception:
com.orientechnologies.orient.core.exception.OConcurrentModificationException: Cannot UPDATE the record #7:19 because the version is not the latest. Probably you are updating an old record or it has been modified by another user (db=v32343 your=v30008) DB
Steps to reproduce the problem
The text was updated successfully, but these errors were encountered: