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

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 1.9.0
    • Affects Version/s: 1.8.0
    • Component/s: None
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Kristina Chodorow (Inactive)
            Reporter:
            Kyle Banker (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: