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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.3.1
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • ALL
    • Repl 2019-08-12, Repl 2019-08-26, Repl 2019-09-09
    • 14
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Samyukta Lanka
            Reporter:
            Samyukta Lanka
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: