Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
None
-
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.