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

The client uses the same error code for server's and its own OOM errors

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Security Level: Public
    • Labels:
      None

      Description

      The function libcouchbase_error_t map_error(protocol_binary_response_status) which maps protocol error codes to client's:
      https://github.com/couchbase/libcouchbase/blob/master/src/handler.c#L38

      One of the cases when the client returns the same error code when it cannot allocate memory:
      https://github.com/couchbase/libcouchbase/blob/master/src/handler.c#L128

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

        Activity

        Show
        trond Trond Norbye added a comment - http://review.couchbase.org/18368

          People

          • Assignee:
            trond Trond Norbye
            Reporter:
            avsej Sergey Avseyev
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes