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

Investigate using unittest::Barrier in MongosTopologyCoordinator unit tests

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • Fully Compatible
    • Repl 2020-06-01

      We should consider synchronizing the threads in MongosTopologyCoordinator unit tests in order to test sleep behavior. In a lot of our tests, we use unittest::barrier to synchronize stdx::thread execution, so that's something to look into.

      Ideally we would be able to call enterQuiesceModeAndWait() in our unittests so we can eliminate the need for enterQuiesceMode().

            Assignee:
            pavithra.vetriselvan@mongodb.com Pavithra Vetriselvan
            Reporter:
            pavithra.vetriselvan@mongodb.com Pavithra Vetriselvan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: