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

rs.stepDown() should fail if slave is far behind and also allow 'force' option

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.8.0
    • Fix Version/s: 1.9.0
    • Component/s: None
    • Labels:
      None

      Description

      When a user calls rs.stepDown():

      1. If then closest secondary is more than 10 seconds behind the primary, then the stepDown() should be automatically rejected. This is to prevent the situation where the secondary catches up and then the original primary is re-elected. (Many users have experienced this phenomenon, and it doesn't jibe with the idea of a stepDown().)

      2. If the stepDown() is rejected, the users should have the option for say rs.stepDown(

      {force: 1}

      ), which will stop writes to the primary, wait for the secondary to catch up, and then step down the primary so that the secondary does in fact become primary.

        Attachments

          Activity

            People

            Assignee:
            kristina Kristina Chodorow
            Reporter:
            kbanker Kyle Banker
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: