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

Step down primary for less time in freeze_timeout.js and increase electionTimeoutMillis

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 4.3.1
    • Fix Version/s: 4.2.1, 4.3.1, 4.0.14
    • Component/s: Replication
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.2, v4.0
    • Sprint:
      Repl 2019-08-12
    • Linked BF Score:
      0

      Description

      freeze_timeout.js fails because, after the primary steps down, instead of a single node replica set prompt election taking place as desired, an election is started due to an election timeout. This is because the primary is stepped down for 10 seconds, which is equal to electionTimeoutMillis. The fix would be to step down the primary for less time and to increase electionTimeoutMillis to be safe. 

        Attachments

          Activity

            People

            Assignee:
            medha.potluri Medha Potluri (Inactive)
            Reporter:
            medha.potluri Medha Potluri (Inactive)
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: