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
Hello!
I am currently trying to implement optimistic concurrency based on revisions. However, I have encountered behavior with the UpdateRevision method that supposedly differs from expected (according to the documentation). When I attempt to update a document with the same revision as in the database, instead of throwing an exception, nothing happens. The record is not updated, no exception is thrown, and the operation ends up "successfully"...
I have attached sample code, it does not pass the "UpdateAsync_Should_Throw_Exception_When_Version_In_Database_Equal" test.
Am I doing something wrong, or there is any other problem?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello!
I am currently trying to implement optimistic concurrency based on revisions. However, I have encountered behavior with the UpdateRevision method that supposedly differs from expected (according to the documentation). When I attempt to update a document with the same revision as in the database, instead of throwing an exception, nothing happens. The record is not updated, no exception is thrown, and the operation ends up "successfully"...
I have attached sample code, it does not pass the "UpdateAsync_Should_Throw_Exception_When_Version_In_Database_Equal" test.
Am I doing something wrong, or there is any other problem?
Thank you!
https://github.com/ryszyn/MartenRevisions
MartenRevisions.zip
Beta Was this translation helpful? Give feedback.
All reactions