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

ReplicaSetMonitor might not discover all hosts in a replica set for over 10 seconds

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.8
    • Affects Version/s: None
    • Component/s: Replication, Sharding
    • None
    • Fully Compatible
    • ALL
    • Sharding 12 (04/01/16), Sharding 13 (04/22/16), Sharding 14 (05/13/16), Sharding 15 (06/03/16)
    • 0

      When we create a ReplicaSetMonitor for a replica set for the first time we don't kick off a refresh of that replica set. The ReplicaSetMonitorManager will eventually refresh it, but it only refreshes all sets once every 10 seconds. This means there can be a period of 10 seconds or more (if it has to wait for other sets to be refreshed first) before all nodes of a replica set are discovered. This can cause us to neglect certain secondaries for secondary reads, preventing us from evenly distributing the read load of secondary reads until after the full refresh takes place.

            Assignee:
            misha.tyulenev@mongodb.com Misha Tyulenev (Inactive)
            Reporter:
            spencer@mongodb.com Spencer Brody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: