Uploaded image for project: 'Couchbase Python Client Library'
  1. Couchbase Python Client Library
  2. PYCBC-1123

Correct error message when inserting docs to non existent scope and collection

    XMLWordPrintable

Details

    • 1

    Description

      a) Try and insert a document to collection that does not exist:
      Inserting doc to an non existing collection

      Expected Result - LCB_ERR_COLLECTION_NOT_FOUND (211)

      B) Try and insert a document to collection, where scope does not exists - in the case both scope and collections don't exist.
      Inserting doc to an non existing scope
      Expected Result - LCB_ERR_SCOPE_NOT_FOUND (217)

      With 3.1.2 - the error is LC_TIMEOUT

      couchbase.exceptions.TimeoutException: <Key='testdoc', RC=0xC9[LCB_ERR_TIMEOUT (201)], Operational Error, Results=1, C Source=(src/multiresult.c,316), Context=

      {'status_code': 140, 'opaque': 1, 'cas': 0, 'key': 'testdoc', 'bucket': 'testbucket', 'collection': '', 'scope': '', 'context': '', 'ref': '', 'endpoint': '', 'type': 'KVErrorContext'}

      , Tracing Output={"testdoc": {"debug_info":

      {"FILE": "src/callbacks.c", "FUNC": "dur_chain2", "LINE": 747}

      }}>

      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
              ritam.sharma Ritam Sharma
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty