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

replSetFreeze command run by stepdown thread may fail when server is already primary

    • Fully Compatible
    • ALL
    • v4.0, v3.6
    • TIG 2018-09-10
    • 0
    • 1

      As part of the changes to address SERVER-35383 and based on this comment from SERVER-35124, the stepdown thread in resmoke.py runs the {replSetFreeze: 0} command to make the former primary electable in the next round of stepdowns. Since the primary is only stepped down for 10 seconds (by default), it is possible for enough time to have passed for the primary to have tried to step back up on its own before the {replSetFreeze: 0} command is run.

      We either need to handle the OperationFailure: cannot freeze node when primary or running for election. state: Primary exception or prevent it from occurring.

            Assignee:
            jonathan.abrahams Jonathan Abrahams
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: