[SERVER-42534] Step down primary for less time in freeze_timeout.js and increase electionTimeoutMillis Created: 31/Jul/19  Updated: 29/Oct/23  Resolved: 31/Jul/19

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: 4.3.1
Fix Version/s: 4.2.1, 4.3.1, 4.0.14

Type: Bug Priority: Major - P3
Reporter: Medha Potluri (Inactive) Assignee: Medha Potluri (Inactive)
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
Operating System: ALL
Backport Requested:
v4.2, v4.0
Sprint: Repl 2019-08-12
Participants:
Linked BF Score: 0

 Description   

freeze_timeout.js fails because, after the primary steps down, instead of a single node replica set prompt election taking place as desired, an election is started due to an election timeout. This is because the primary is stepped down for 10 seconds, which is equal to electionTimeoutMillis. The fix would be to step down the primary for less time and to increase electionTimeoutMillis to be safe. 



 Comments   
Comment by Githook User [ 16/Oct/19 ]

Author:

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

Message: SERVER-42534 Step down primary for less time in freeze_timeout.js and increase electionTimeoutMillis

(cherry picked from commit 488adcaea8526492411d433229a765d5bd7dd5db)
Branch: v4.0
https://github.com/mongodb/mongo/commit/854c92f3c9319f588fdbbcce125451d64d895a22

Comment by Githook User [ 07/Oct/19 ]

Author:

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

Message: SERVER-42534 Step down primary for less time in freeze_timeout.js and increase electionTimeoutMillis

(cherry picked from commit 488adcaea8526492411d433229a765d5bd7dd5db)
Branch: v4.2
https://github.com/mongodb/mongo/commit/b1e94ad7bc13524358199fc1909c356085cf7bcf

Comment by Githook User [ 31/Jul/19 ]

Author:

{'name': 'Medha Potluri', 'email': 'medha.potluri@mongodb.com'}

Message: SERVER-42534 Step down primary for less time in freeze_timeout.js and increase electionTimeoutMillis
Branch: master
https://github.com/mongodb/mongo/commit/488adcaea8526492411d433229a765d5bd7dd5db

Generated at Thu Feb 08 05:00:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.