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

Write additional test for new replSetStepDown behavior

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.2.12, 3.4.1, 3.5.1
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • v3.2
    • Repl 2016-12-12

      As per SERVER-26747, the replSetStepDown command now requires that a majority of nodes are caught up with the primary and that there is at least one electable node present in this majority. The test jstests/replsets/stepdown_needs_electable_secondary.js partially tests this behavior, but we would like to add a test for the case where an electable node is caught up with the primary, but a majority of nodes are NOT caught up. i.e. the case where (majorityCaughtUp=false, electableNodeCaughtUp=true). Consider naming this test stepdown_needs_majority.js

            Assignee:
            william.schultz@mongodb.com William Schultz (Inactive)
            Reporter:
            william.schultz@mongodb.com William Schultz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: