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

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Shell
    • None

      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.

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

              Created:
              Updated:
              Resolved: