[SERVER-33426] lib mongod CAPI necessary debugging improvements Created: 21/Feb/18  Updated: 06/Dec/22  Resolved: 29/Mar/18

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Eric Milkie Assignee: DO NOT USE - Backlog - Dev Tools
Resolution: Duplicate Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-33909 Provide more detailed error reporting... Closed
Assigned Teams:
Developer Tools
Operating System: ALL
Sprint: Platforms 2018-04-23
Participants:

 Description   

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?


Generated at Thu Feb 08 04:33:22 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.