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

In external_auth_WT JSTests, ensure that Saslauthd has fully started before continuing test

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.14, 4.1.12, 4.0.11
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v4.0, v3.6
    • Security 2019-05-06, Security 2019-05-20
    • 50

      In the test framework, because we're managing the lifecycle of external processes we're dependent on, it seems like it is possible to start saslauthd, but for saslauthd to not have fully started by the time MongoDB has started. To fix this, we should use runProgram, which will return once saslauthd has doubleforked, instead of _startMongoProgram which returns immediately. Then, we should repeatedly check for the existence of saslauthd's socket file. If the socket file exists, we have a good guarantee that saslauthd is running.

            Assignee:
            jonathan.reams@mongodb.com Jonathan Reams
            Reporter:
            spencer.jackson@mongodb.com Spencer Jackson
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: