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

ScopedThread's join() method should throw if an exception was thrown in the thread

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • None
    • None
    • Shell
    • None

    Description

      Almost all tests using ScopedThreads call join() on the thread, but few if any call hasFailed(). Without checking the result of hasFailed() on the thread, it's possible that an uncaught exception was thrown from the thread but the test can still pass. This may be hiding existing test failures.

      If we don't do this, we should at least audit all users of ScopedThread and make sure they're handing errors from within the thread appropriately.

      Attachments

        Issue Links

          Activity

            People

              backlog-server-platform DO NOT USE - Backlog - Platform Team
              spencer@mongodb.com Spencer Brody (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: