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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.2.13, 3.3.14
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • ALL
    • Repl 17 (07/15/16), Repl 18 (08/05/16), Repl 2016-08-29, Repl 2016-09-19
    • 0

      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

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

              Created:
              Updated:
              Resolved: