Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-3065

Fix APM callbacks in test suite to avoid assertion exceptions

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 3.11.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • C Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      CXX-2723 documented throwing exceptions from APM callbacks as being undefined behavior to account for lack of exception safety in libmongoc. An internal check-and-terminate was added for QoI purposes.

      The CXX Driver test suite still contains several cases of Catch2 assertions (which throw an exception on failure) within APM callbacks. These assertions should be replaced with an exception-safe alternative to conform to the APM callback requirements.

            Assignee:
            ezra.chung@mongodb.com Ezra Chung
            Reporter:
            ezra.chung@mongodb.com Ezra Chung
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: