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

Usage of ScopedTaskExecutor::joinAsync() in scheduleLoseRaceWithShutdown test is race-prone

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.4.0-rc0, 4.7.0
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • v4.4
    • Sharding 2020-03-23
    • 0

      The changes from 82833b4 as part of SERVER-46395 made an incorrect expectation for the scheduleLoseRaceWithShutdown test case. When the scheduled task is canceled with ShutdownInProgress, there isn't a guarantee that _eraseAndNotifyIfNeeded() has been called, and for the future returned by joinAsync() to have become ready yet. The contract is that it will only eventually become ready.

            Assignee:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: