[SERVER-74179] Use initiateWithHighElectionTimeout() in primary_casts_vote_on_stepdown.js to prevent unexpected elections Created: 17/Feb/23  Updated: 29/Oct/23  Resolved: 21/Feb/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc0, 6.0.6

Type: Task Priority: Major - P3
Reporter: Wenbin Zhu Assignee: Wenbin Zhu
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Backport Requested:
v6.3, v6.2, v6.0
Sprint: Repl 2023-03-06
Participants:
Linked BF Score: 5

 Description   

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.



 Comments   
Comment by Githook User [ 07/Apr/23 ]

Author:

{'name': 'Wenbin Zhu', 'email': 'wenbin.zhu@mongodb.com', 'username': 'WenbinZhu'}

Message: SERVER-74179 Use initiateWithHighElectionTimeout() in primary_casts_vote_on_stepdown.js to prevent unexpected elections.
Branch: v6.0
https://github.com/mongodb/mongo/commit/a6a34a2c447af98df83145932f95355917a20142

Comment by Githook User [ 21/Feb/23 ]

Author:

{'name': 'Wenbin Zhu', 'email': 'wenbin.zhu@mongodb.com', 'username': 'WenbinZhu'}

Message: SERVER-74179 Use initiateWithHighElectionTimeout() in primary_casts_vote_on_stepdown.js to prevent unexpected elections.
Branch: master
https://github.com/mongodb/mongo/commit/621b22d5ed178e8e6f067629e9c23f25a378e107

Generated at Thu Feb 08 06:26:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.