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

Add unit tests for ServerIsMasterMonitor

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.4.0-rc4
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • v4.4
    • 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
    • 0

      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?

            Assignee:
            haley.connelly@mongodb.com Haley Connelly
            Reporter:
            haley.connelly@mongodb.com Haley Connelly
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: