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

Stop sending replSetUpdatePosition commands with entries for removed members

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Replication
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: