Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-6218

Upsert and insert doesn't honor CAS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • None
    • None
    • sdk

    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

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            richard.smedley Richard Smedley
            roi.katz Roi Katz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty