[SERVER-41687] last_vote.js should step up nodes instead of stepping down nodes Created: 13/Jun/19  Updated: 29/Oct/23  Resolved: 26/Aug/19

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.3.1

Type: Bug Priority: Major - P3
Reporter: Samyukta Lanka Assignee: Samyukta Lanka
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Repl 2019-08-12, Repl 2019-08-26, Repl 2019-09-09
Participants:
Linked BF Score: 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.



 Comments   
Comment by Githook User [ 26/Aug/19 ]

Author:

{'name': 'Samyukta Lanka', 'email': 'samy.lanka@mongodb.com', 'username': 'lankas'}

Message: SERVER-41687 last_vote.js should step up nodes instead of stepping down nodes
Branch: master
https://github.com/mongodb/mongo/commit/ea5a022b07ad765470ecb229be5b4659312e0e88

Generated at Thu Feb 08 04:58:23 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.