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

Speedup dbclient_rs_test

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • Execution Team 2022-03-07

      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.

       

       

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

              Created:
              Updated:
              Resolved: