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

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.2.13, 3.3.14
    • Replication
    • None
    • Fully Compatible
    • ALL
    • Repl 17 (07/15/16), Repl 18 (08/05/16), Repl 2016-08-29, Repl 2016-09-19
    • 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

              benety.goh@mongodb.com Benety Goh
              milkie@mongodb.com Eric Milkie
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: