[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: |
|
||||||||||||||||
| 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: |
| 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. |