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

replSetFreeze command can result in a crash if used during a dry-run election

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.13, 3.3.14
    • Component/s: Replication
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Completed:
    • Sprint:
      Repl 17 (07/15/16), Repl 18 (08/05/16), Repl 2016-08-29, Repl 2016-09-19
    • Linked BF Score:
      0

      Description

      The replsetFreeze command can, under certain circumstances, change the role from candidate to leader. The circumstances that are covered by the current code logic are not fully correct, in particular during a dry-run election.

      The invariant will fail with this comdition:

       _role == Role::candidate

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: