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

Write additional test for new replSetStepDown behavior

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.2.12, 3.4.1, 3.5.1
    • Replication
    • None
    • Fully Compatible
    • v3.2
    • Repl 2016-12-12

    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

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

              Dates

                Created:
                Updated:
                Resolved: