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

Investigate using unittest::Barrier in MongosTopologyCoordinator unit tests

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.7.0
    • None
    • Replication
    • None
    • Fully Compatible
    • Repl 2020-06-01

    Description

      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().

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: