[SERVER-54290] Add ability to mock Streamable RSM topology description state Created: 04/Feb/21  Updated: 29/Oct/23  Resolved: 22/Feb/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.9.0

Type: New Feature Priority: Major - P3
Reporter: Lamont Nelson Assignee: Randolph Tan
Resolution: Fixed Votes: 0
Labels: sharding-remove-scanning-rsm, sharding-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-54291 remove dependency on scanning replica... Closed
is depended on by SERVER-54292 remove dependency on scanning replica... Closed
is depended on by SERVER-52899 Remove dependency on ScanningReplicaS... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2021-02-22, Sharding 2021-03-08
Participants:

 Description   

In order to support running in unit tests we need the ability to 1) manually install a topology description into the rsm, and 2) enable a 'test mode' where the rsm does not try to schedule new monitoring code from the ping monitor or server discovery monitor.



 Comments   
Comment by Githook User [ 22/Feb/21 ]

Author:

{'name': 'Randolph Tan', 'email': 'randolph@10gen.com', 'username': 'renctan'}

Message: SERVER-54290 Add ability to mock Streamable RSM topology description state
Branch: master
https://github.com/mongodb/mongo/commit/4b48c797df7dc9871c16aa2347b8af55da455639

Comment by Lamont Nelson [ 04/Feb/21 ]

This class will allow creating server descriptions: https://github.com/mongodb/mongo/blob/master/src/mongo/client/sdam/server_description_builder.h#L40 for the mocked topology description. We should consider adding a higher level interface to create a usable topology description with a few lines of code.

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