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

Write additional test for new replSetStepDown behavior

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.12, 3.4.1, 3.5.1
    • Component/s: Replication
    • Labels:
      None

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: