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

Speedup dbclient_rs_test

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 6.0.0-rc0
    • None
    • Fully Compatible
    • Execution Team 2022-03-07

    Description

      dbclient_rs_test is extremely slow. The reason is that it runs several find requests and wait 15 seconds for each of them to fail with FailedToSatisfyReadPreference.

      The 15 seconds timeout comes from the ReplicaSetMonitorInterface::kDefaultFindHostTimeout.

      Unittests are supposed to be quick because we run them as part of the commit tasks, also such a long test make unpractical to run unittest locally before to send an EVG patch.

      A possible solution would be to use a failpoint to override the kDefaultFindHostTimeout in this specific unittest.

       

       

      Attachments

        Activity

          People

            daniel.gottlieb@mongodb.com Daniel Gottlieb (Inactive)
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: