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

NetworkInterfaceMock should allow simultaneous interruption and response

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.9.0, 4.4.5
    • None
    • None
    • Fully Compatible
    • ALL
    • v4.4
    • Security 2021-02-22, Security 2021-03-08
    • 16

    Description

      There are no guards around NetworkInterfaceMock::NetworkOperation::setResponse() here and here. This means that tests that feature timeouts or interruptions cannot safely experience an interruption during a response. Poorly written tests may also experience undefined behavior because it is not explicitly defined who wins "races".

      Attachments

        Issue Links

          Activity

            People

              ben.caimano@mongodb.com Benjamin Caimano (Inactive)
              ben.caimano@mongodb.com Benjamin Caimano (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: