[SERVER-30411] (3.4) last_vote.js should make assertCurrentTerm exception safe Created: 28/Jul/17  Updated: 30/Oct/23  Resolved: 28/Jul/17

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

Type: Bug Priority: Major - P3
Reporter: William Schultz (Inactive) Assignee: Unassigned
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
Participants:
Linked BF Score: 0

 Description   

last_vote.js will restart nodes and then check their terms with assertCurrentTerm. After a restart, we need to wait until we can connect to a node again before trying to check the term, so we should be wrapping this in an exception safe retry, as done in this ticket: SERVER-27083. The change in SERVER-27083 to last_vote.js was never backported, so we should make the change on 3.4.



 Comments   
Comment by Githook User [ 28/Jul/17 ]

Author:

{'email': 'william.schultz@mongodb.com', 'username': 'will62794', 'name': 'William Schultz'}

Message: SERVER-30411 last_vote.js should wrap term checks in exception safe retry
Branch: v3.4
https://github.com/mongodb/mongo/commit/9fca26352c1c193bd4a5a555b909cdef4022e824

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