Uploaded image for project: 'Couchbase Java Client'
  1. Couchbase Java Client
  2. JCBC-143

Prepend should not require CAS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • 1.1.1
    • 1.0.3
    • Documentation
    • Security Level: Public
    • None

    Description

      Hopefully this is just a doc bug and not in the actual code, but all of the atomic updates including prepend (http://www.couchbase.com/docs/couchbase-sdk-java-1.0/couchbase-sdk-java-update-prepend.html) should not require CAS. That significantly defeats their performance effectiveness.

      If the function does require CAS, we should document that a CAS id of 0 will override the requirement to get the key again as in this example:
      client.prepend(casv.getCas(),"samplekey", "prependedstring");

      Attachments

        Issue Links

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

          Activity

            People

              daschl Michael Nitschinger
              perry Perry Krug
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty