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

Exceptions that escape a ScopedThread should fail the test

    XMLWordPrintableJSON

Details

    • Minor Change
    • TIG 2018-09-24
    • 5

    Description

      If you start a ScopedThread in a test and it throws an exception, that exception is swallowed and does not error the test, even if the main test thread calls join() and returnData() on the ScopedThread.
      This can lead to subtle problems with tests, and issues where tests are broken and no longer testing what they are supposed to, but no one notices.

      Attachments

        Activity

          People

            max.hirschhorn@mongodb.com Max Hirschhorn
            spencer@mongodb.com Spencer Brody (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: