Uploaded image for project: 'Couchbase node.js Client Library'
  1. Couchbase node.js Client Library
  2. JSCBC-1249

LockTest failing with `other` exception instead of CouchbaseException

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • 4.3.x
    • None
    • None
    • None

    Description

      total - 4*5 = 20

      LockTest.unlockCasMismatch
      LockTest.unlockNotFound
      LockTest.verifyUnlockCasMismatch
      LockTest.verifyUnlockInvalidArgumentExceptions

      unlock commands of lock tests are failing with `other` exception, while we expect them to fail with `CouchbaseException`

      ----------------------
      Taking example of unlockNotFound(), where we are sending:

      collection_command {
        collection {
          bucket_name: "default"
          scope_name: "_default"
          collection_name: "_default"
        }
        unlock {
          location {
            specific {
              collection {
                bucket_name: "default"
                scope_name: "_default"
                collection_name: "_default"
              }
              id: "a8e88b89-3e42-4652-8dd6-212a6930c667"
            }
          }
          cas: 1
        }
      } 

      And are getting result:

      exception {
        other {
          name: "Error"
          serialized: "{}"
        }
      } 

      While in Java we are seeing below result:

      exception {
        couchbase {
          name: "DocumentNotFoundException"
          type: SDK_DOCUMENT_NOT_FOUND_EXCEPTION
          serialized: "com.couchbase.client.core.error.DocumentNotFoundException: Document with the given id not found {\"completed\":true,\"coreId\":\"0x2eedeef800000002\",\"idempotent\":false,\"lastChannelId\":\"2EEDEEF800000002/000000008B3067EE\",\"lastDispatchedFrom\":\"10.100.195.85:49755\",\"lastDispatchedTo\":\"172.23.111.128:11210\",\"requestId\":54,\"requestType\":\"UnlockRequest\",\"retried\":11,\"retryReasons\":[\"BUCKET_OPEN_IN_PROGRESS\"],\"service\":{\"bucket\":\"default\",\"collection\":\"_default\",\"documentId\":\"<ud>5c07555e-edc4-4c0c-986b-03534119cf46</ud>\",\"errorCode\":{\"description\":\"Not Found\",\"name\":\"KEY_ENOENT\"},\"opaque\":\"0x65\",\"scope\":\"_default\",\"type\":\"kv\",\"vbucket\":316},\"status\":\"NOT_FOUND\",\"timeoutMs\":2500,\"timings\":{\"dispatchMicros\":253186,\"totalDispatchMicros\":253186,\"totalServerMicros\":0,\"totalMicros\":1336362,\"serverMicros\":0}}"
        }
      }

      Attaching driver and performer logs for reference.

      Thanks!!

      Attachments

        Issue Links

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

          Activity

            People

              jared.casey Jared Casey
              aaliya.haque Aaliya Haque
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty