Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-33426

lib mongod CAPI necessary debugging improvements

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Internal Code
    • Labels:
      None
    • ALL
    • Platforms 2018-04-23

      The libmongodbcapi contains a whole bunch of unfortunate coding constructs such as

      } catch (const std::exception&) {
          last_error = LIBMONGODB_CAPI_ERROR_UNKNOWN;
          return nullptr;
      }
      

      This paradigm of coding, coupled with the prevalent use of uasserts in the client/embedded/ codebase, results in a frustrating (and time consuming) debugging experience for anyone who happens to have a patch build fail a test in this area. Could we add better exception handling in this library?

            Assignee:
            backlog-server-devtools DO NOT USE - Backlog - Dev Tools
            Reporter:
            milkie@mongodb.com Eric Milkie
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: