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

Use initiateWithHighElectionTimeout() in primary_casts_vote_on_stepdown.js to prevent unexpected elections

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc0, 6.0.6
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • v6.3, v6.2, v6.0
    • Repl 2023-03-06
    • 5
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      primary_casts_vote_on_stepdown.js expects there to be a single round of election, however due to slow machines, there could be unexpected elections that increase the term beyond what the test expects. It should use initiateWithHighElectionTimeout() to prevent such cases.

            Assignee:
            wenbin.zhu@mongodb.com Wenbin Zhu
            Reporter:
            wenbin.zhu@mongodb.com Wenbin Zhu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None