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

lcb_exists returns errors on missing as opposed to boolean values

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0
    • None
    • None
    • 1

    Description

      When performing an lcb_exists operation and the document is not found, the SDK returns an error via lcb_respexists_status as opposed to returning false via lcb_respexists_is_found.

      Attachments

        Issue Links

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

          Activity

            lcb_respexists_is_found returns false in case the document is not found. lcb_respexists_status returns operation status. So the wrapper must interpret whether to raise an error in case of not-found status code

            avsej Sergey Avseyev added a comment - lcb_respexists_is_found returns false in case the document is not found. lcb_respexists_status returns operation status. So the wrapper must interpret whether to raise an error in case of not-found status code
            brett19 Brett Lawson added a comment -

            According to the RFC, exists is not meant to return an error if the document is not found (which makes sense since your explicitly asking whether the document exists).

            brett19 Brett Lawson added a comment - According to the RFC, exists is not meant to return an error if the document is not found (which makes sense since your explicitly asking whether the document exists).

            Build libcouchbase-2.8.5-584 contains libcouchbase commit e082b45 with commit message:
            CCBC-1147: return LCB_SUCCESS for lcb_exists when doc is missing

            build-team Couchbase Build Team added a comment - Build libcouchbase-2.8.5-584 contains libcouchbase commit e082b45 with commit message: CCBC-1147 : return LCB_SUCCESS for lcb_exists when doc is missing

            Build couchbase-server-7.0.0-3115 contains libcouchbase commit e082b45 with commit message:
            CCBC-1147: return LCB_SUCCESS for lcb_exists when doc is missing

            build-team Couchbase Build Team added a comment - Build couchbase-server-7.0.0-3115 contains libcouchbase commit e082b45 with commit message: CCBC-1147 : return LCB_SUCCESS for lcb_exists when doc is missing

            People

              avsej Sergey Avseyev
              brett19 Brett Lawson
              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