[SERVER-45799] Add unit tests for ServerIsMasterMonitor Created: 27/Jan/20  Updated: 29/Oct/23  Resolved: 06/May/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.4.0-rc4

Type: Task Priority: Major - P3
Reporter: Haley Connelly Assignee: Haley Connelly
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
depends on SERVER-43332 Replace RSM implementation with SDAM-... Closed
Problem/Incident
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.4
Sprint: Service Arch 2020-01-27, Service Arch 2020-02-10, Service Arch 2020-02-24, Service Arch 2020-03-09, Service Arch 2020-03-23, Service Arch 2020-04-06, Service arch 2020-04-20, Service arch 2020-05-04
Participants:
Linked BF Score: 0

 Description   

Introduce the framework for testing the ServerIsMasterMonitor.

  1. if we get a new Topology which contains a server we aren't currently tracking, does it get added?
  2. if we get a new Topology which has removed a server, does it get removed?
  3. do the resources get cleaned up when the server is removed? (ie any outstanding tasks are canceled)
  4. do ismaster requests for a single server get sent at approximately the right frequency?
  5. when we get an ismaster reply, do the server heartbeat success and failures get published as events?


 Comments   
Comment by Githook User [ 05/May/20 ]

Author:

{'name': 'Haley Connelly', 'email': 'haley.connelly@mongodb.com', 'username': 'haleyConnelly'}

Message: SERVER-45799 Add unit tests for ServerIsMasterMonitor SERVER-45799 Fix for logv2 in v4.4

(cherry picked from commit 9c442e31cc9d7fda1ee51f142e61ccac21de7c7e)
Branch: v4.4
https://github.com/mongodb/mongo/commit/c3a62c4b5ef3acb4a72f9df9c2b37a6678f0b727

Comment by Githook User [ 04/May/20 ]

Author:

{'name': 'Haley Connelly', 'email': 'haley.connelly@mongodb.com', 'username': 'haleyConnelly'}

Message: Revert "SERVER-45799 Add unit tests for ServerIsMasterMonitor"

This reverts commit ad03ae26ddb5cd0b4dcc3977ce4c94e0c6707381.
Branch: v4.4
https://github.com/mongodb/mongo/commit/75593b50d2778fdfdb86e84b31f60bebd7501109

Comment by Githook User [ 04/May/20 ]

Author:

{'name': 'Haley Connelly', 'email': 'haley.connelly@mongodb.com', 'username': 'haleyConnelly'}

Message: SERVER-45799 Add unit tests for ServerIsMasterMonitor

(cherry picked from commit 9c442e31cc9d7fda1ee51f142e61ccac21de7c7e)
Branch: v4.4
https://github.com/mongodb/mongo/commit/ad03ae26ddb5cd0b4dcc3977ce4c94e0c6707381

Comment by Githook User [ 22/Apr/20 ]

Author:

{'name': 'Haley Connelly', 'email': 'haley.connelly@mongodb.com', 'username': 'haleyConnelly'}

Message: SERVER-45799 Add unit tests for ServerIsMasterMonitor
Branch: master
https://github.com/mongodb/mongo/commit/9c442e31cc9d7fda1ee51f142e61ccac21de7c7e

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