[SERVER-63900] Speedup dbclient_rs_test Created: 23/Feb/22  Updated: 29/Oct/23  Resolved: 03/Mar/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Tommaso Tocci Assignee: Daniel Gottlieb (Inactive)
Resolution: Fixed Votes: 0
Labels: testing
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2022-03-07
Participants:

 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.

 

 



 Comments   
Comment by Githook User [ 03/Mar/22 ]

Author:

{'name': 'Daniel Gottlieb', 'email': 'daniel.gottlieb@mongodb.com', 'username': 'dgottlieb'}

Message: SERVER-63900: Parameterize RS find host timeout for unittests.
Branch: master
https://github.com/mongodb/mongo/commit/e16ca01d841ef74a8b9467778ae5456978570cbe

Comment by Daniel Gottlieb (Inactive) [ 23/Feb/22 ]

I'll take this ticket. I had already made a patch and was waiting on lamont.nelson to approve of the suggested change before filing a ticket.

Generated at Thu Feb 08 05:58:58 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.