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

Race in ServerSendsMultipleMessages unit test causes occasional test failures

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.3.0-rc0, 7.2.0-rc2
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v7.2
    • Service Arch 2023-11-27
    • 147

      There is a race between the server handler finishing before the client handler in the ServerSendsMultipleMessages test, which happens because the client handler sends a message and then immediately returns, which in turn will cause runWithServers to shut down the server. If that happens before the server handler has had a chance to complete, the test fails because the server handler can't read the message from the client. We should update this test so that the client handler waits for some form of confirmation from the server end before exiting.

            Assignee:
            patrick.freed@mongodb.com Patrick Freed
            Reporter:
            patrick.freed@mongodb.com Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: