Uploaded image for project: 'Couchbase C client library libcouchbase'
  1. Couchbase C client library libcouchbase
  2. CCBC-1373

KV operations on scope and/or collection that doesn't exist should retry till timeout

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.1.2
    • 3.0.7
    • library
    • None
    • 1

    Description

      When implementing transactions, I noticed that the fit performer tests expected a kv operation against a collection/scope that doesn't exist to retry until the operation times out.  However, lcb returns an LCB_ERR_SCOPE_NOT_FOUND or LCB_ERR_COLLECTION_NOT_FOUND in this situation.  The tests verify it: https://github.com/couchbase/libcouchbase/blob/7f0afd1bc7b647aec4f4b12532a8afccafa2c1b2/tests/iotests/t_collections.cc#L240 for instance.  

      Checking with other sdks, go and java both would retry internally until the op times out.  I've worked around it in the client for txns for now, but I'd love to remove my workaround.

      Attachments

        Issue Links

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

          Activity

            People

              avsej Sergey Avseyev
              david.kelly David Kelly (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