Details
-
Bug
-
Resolution: Fixed
-
None
-
None
Description
In the docs it's written that upsert, insert and remove honors the CAS.
This is incorrect.
"CAS is an acronym for Compare And Swap, and is known as a form of optimistic locking. The CAS can be supplied as parameters to the insert, upsert, replace, and remove operations. When applications provide the CAS, server will check the application-provided version of CAS against its own version of the CAS:"
please take a look on old docs
https://developer.couchbase.com/documentation/server/3.x/developer/java-2.0/documents-updating.html
"It also does not use the CAS value to handle concurrent updates, even when set on the document. Use replace instead."
Only Replace and remove ) functions honors the CAS value