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

CasMismatch error should be returned not DocExists on Replace.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: core-10.0.0
    • Component/s: library
    • Labels:
      None
    • Story Points:
      1

      Description

      When performing Replace/Remove operations, the server will return EEXISTS to indicate that the CAS did not match, this is intended to be translated to an appropriate ErrCasMismatch error by the time it reaches the user.

        Attachments

          Issue Links

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

            Activity

            Hide
            charles.dixon Charles Dixon added a comment - - edited

            Brett Lawson I'm unsure we can do this as a patch release, it's a change in behaviour so requires a minor release I think.

            Show
            charles.dixon Charles Dixon added a comment - - edited Brett Lawson I'm unsure we can do this as a patch release, it's a change in behaviour so requires a minor release I think.
            Hide
            brett19 Brett Lawson added a comment -

            I'm unsure if we can do this in a minor either, but I'll assign it there for later triage.

            Show
            brett19 Brett Lawson added a comment - I'm unsure if we can do this in a minor either, but I'll assign it there for later triage.
            Hide
            brett19 Brett Lawson added a comment -

            Discussion with Charles Dixon, we will fix this in gocbcore and add a backwards compatibility conversion in gocb which converts it back to DocExists and then file a bug against the next minor to remove the backwards compatibility code.

            Show
            brett19 Brett Lawson added a comment - Discussion with Charles Dixon , we will fix this in gocbcore and add a backwards compatibility conversion in gocb which converts it back to DocExists and then file a bug against the next minor to remove the backwards compatibility code.
            Hide
            build-team Couchbase Build Team added a comment -

            Build sync_gateway-3.0.0-96 contains gocbcore commit d162e4e with commit message:
            Back out GOCBC-1008

            Show
            build-team Couchbase Build Team added a comment - Build sync_gateway-3.0.0-96 contains gocbcore commit d162e4e with commit message: Back out GOCBC-1008
            Hide
            build-team Couchbase Build Team added a comment -

            Build sync_gateway-3.0.0-96 contains gocbcore commit 3187be4 with commit message:
            GOCBC-1008: Convert exists error to cas mismatch for subdoc

            Show
            build-team Couchbase Build Team added a comment - Build sync_gateway-3.0.0-96 contains gocbcore commit 3187be4 with commit message: GOCBC-1008 : Convert exists error to cas mismatch for subdoc
            Hide
            build-team Couchbase Build Team added a comment -

            Build couchbase-server-7.0.0-4715 contains gocbcore commit d162e4e with commit message:
            Back out GOCBC-1008

            Show
            build-team Couchbase Build Team added a comment - Build couchbase-server-7.0.0-4715 contains gocbcore commit d162e4e with commit message: Back out GOCBC-1008
            Hide
            build-team Couchbase Build Team added a comment -

            Build couchbase-server-7.0.0-4715 contains gocbcore commit 3187be4 with commit message:
            GOCBC-1008: Convert exists error to cas mismatch for subdoc

            Show
            build-team Couchbase Build Team added a comment - Build couchbase-server-7.0.0-4715 contains gocbcore commit 3187be4 with commit message: GOCBC-1008 : Convert exists error to cas mismatch for subdoc
            Hide
            build-team Couchbase Build Team added a comment -

            Build sync_gateway-3.0.0-273 contains gocbcore commit ea85a50 with commit message:
            GOCBC-1008: Convert exists error to cas mismatch for subdoc

            Show
            build-team Couchbase Build Team added a comment - Build sync_gateway-3.0.0-273 contains gocbcore commit ea85a50 with commit message: GOCBC-1008 : Convert exists error to cas mismatch for subdoc

              People

              Assignee:
              charles.dixon Charles Dixon
              Reporter:
              brett19 Brett Lawson
              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