Uploaded image for project: 'Couchbase Go SDK'
  1. Couchbase Go SDK
  2. GOCBC-203

Performing a replace operation with the wrong CAS value returns "Key already exists."

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Mac 10.11.6

      Description

      When executing a replace command where the wrong CAS value is supplied the following error is returned,

      "Key already exists."

      This is a bit hard to figure out the reason for the failure. The Python SDK logs the following for the same error.

      "The key already exists in the server. If you have supplied a CAS then the key exists with a CAS value different than specified"

        Attachments

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

          Activity

          Hide
          build-team Couchbase Build Team added a comment -

          Build 5.0.0-3284 contains gocbcore commit 4af0a64359ae03aaa5fe8a05882a14655c9b9682 with commit message:
          GOCBC-203: Improve KeyExists error message to be more descriptive.
          https://github.com/couchbase/gocbcore/commit/4af0a64359ae03aaa5fe8a05882a14655c9b9682

          Show
          build-team Couchbase Build Team added a comment - Build 5.0.0-3284 contains gocbcore commit 4af0a64359ae03aaa5fe8a05882a14655c9b9682 with commit message: GOCBC-203 : Improve KeyExists error message to be more descriptive. https://github.com/couchbase/gocbcore/commit/4af0a64359ae03aaa5fe8a05882a14655c9b9682

            People

            Assignee:
            brett19 Brett Lawson
            Reporter:
            erik.manor Erik Manor (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes

                  PagerDuty