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
Improve concurrent save/insert optimistic locking [DATACOUCH-224] #534
Comments
Eduard Dudar commented This change introduced some unexpected consequences as for the patch version. Documents that were routed to |
Simon Baslé commented The assumption is that if you're using an If you don't want insert+CAS, but rather upsert, then you probably don't need a version property? |
Eduard Dudar commented That's true, in my use case all CB accessors produce consistent result on a particular key at a given time so even when one of them updates document the rest are fine to do nothing/overwrite it. I'm not questioning the change itself, it looks good and proper. My point is that replacement of upsert with insert is restrictive and so potentially breaking as it was in my case |
Simon Baslé commented So do you think it should be better documented somewhere as a breaking change? (not sure where though, I'm open to suggestions ;) ) |
Eduard Dudar commented I think ideally changes like this is better to defer until next minor release at least such is upcoming 2.2. As far as documentation at http://docs.spring.io/spring-data/couchbase/docs/2.1.2.RELEASE/reference/html/ has no section about changes it might be beneficially to add notes to https://github.com/spring-projects/spring-data-couchbase/releases? Or add such section to official docs if github is for code only |
Anastasiia Smirnova opened DATACOUCH-224 and commented
Follow-up on DATACOUCH-212. While the former has been resolved in its basic form, Aloren has raised concerns that the case of multiple concurrent saves (and even inserts) has not, as no
OptimisticLockingException
is raised in such a caseAffects: 2.1.1 (Hopper SR1)
Issue Links:
("depends on")
Referenced from: commits c6b5ecc, 811c024
Backported to: 2.1.2 (Hopper SR2)
The text was updated successfully, but these errors were encountered: