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

listen_test should join the listening thread on all exit paths

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.4
    • Component/s: Networking
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Platforms 12 (04/01/16)
    • Linked BF Score:
      0

      Description

      If the ASSERT_APPROX_EQUAL in listen_test fails, it throws an assertion failure exception. That leaves the joinable thread 't' unjoined when t's destructor is invoked. That leads to an immediate call to terminate before the message about the failed test is printed.

      We need to both join the thread on all paths, and fix up the test so that it isn't flaky.

        Attachments

          Activity

            People

            Assignee:
            acm Andrew Morrow
            Reporter:
            acm Andrew Morrow
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: