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

Stop sending replSetUpdatePosition commands with entries for removed members

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • None

      We maintain a map of RIDs to their oplog progress which we use when generating replSetUpdatePosition commands to update our upstream sync source. We don't currently clear that map on reconfig, which means if a node is removed then every time we send a replSetUpdatePosition command it will include an entry for the last known optime of the removed node, forever. Instead, we should clear the map on reconfigs and trigger a new handshake and replSetUpdatePosition command upstream, so everyone has an up-to-date view of the progress of the members in the set, and just the members still in the set.

            Assignee:
            spencer@mongodb.com Spencer Brody (Inactive)
            Reporter:
            spencer@mongodb.com Spencer Brody (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: