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

last_vote.js should step up nodes instead of stepping down nodes

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.3.1
    • None
    • Replication
    • None
    • Fully Compatible
    • ALL
    • Repl 2019-08-12, Repl 2019-08-26, Repl 2019-09-09
    • 14

    Description

      last_vote.js steps down nodes when it wants to cause an election. This means that it uses the electionTimeout to trigger a new election. Since the test runs so many elections, it has reduced the electionTimeout. But this means that if the test runs on a slow machine, it could cause unplanned elections and make the test fail. Instead of relying on the election timeout, the test should step up nodes when it wants a new election. Since it is currently only testing the last vote document, this change shouldn't impact test coverage.

      Attachments

        Activity

          People

            samy.lanka@mongodb.com Samyukta Lanka
            samy.lanka@mongodb.com Samyukta Lanka
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: