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

CAS mismatch exception is a raw rpc error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Major
    • None
    • None
    • None
    • 0

    Description

      CAS mismatches are not wrapped in a CouchbaseError. Get this instead:

      15:47:59.262 [-thread-22] INFO  client.util.ExceptionValidator - Unexpected result on exception {
        other {
          serialized: "rpc error: code = FailedPrecondition desc = rpc error: code = FailedPrecondition desc = The specified CAS for \'a8372da4-88e8-4af6-bed0-0d4db20890ae\' in \'default/_default/_default\' did not match. | {\"context\":{\"details\":1,\"precondition_violation\":\"CAS\",\"server\":\"The specified CAS for \'a8372da4-88e8-4af6-bed0-0d4db20890ae\' in \'default/_default/_default\' did not match.\"}} | {\"context\":{\"details\":1,\"precondition_violation\":\"CAS\",\"server\":\"rpc error: code = FailedPrecondition desc = The specified CAS for \'a8372da4-88e8-4af6-bed0-0d4db20890ae\' in \'default/_default/_default\' did not match. | {\\\"context\\\":{\\\"details\\\":1,\\\"precondition_violation\\\":\\\"CAS\\\",\\\"server\\\":\\\"The specified CAS for \'a8372da4-88e8-4af6-bed0-0d4db20890ae\' in \'default/_default/_default\' did not match.\\\"}}\"}}"
        }
      } 

      FIT Test case: https://github.com/couchbaselabs/transactions-fit-performer/blob/ed7d034b0e21f89253bf8653253e4589a6b721cc/test-driver/src/test/java/com/couchbase/client/kv/ReplaceTest.java#L146

       

      Running with Gocb master (cca469e4e1a8).

       

      Attachments

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

        Activity

          People

            charles.dixon Charles Dixon
            will.broadbelt Will Broadbelt
            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