[SERVER-35951] Under PV1, ReplicationCoordinatorImpl::processReplSetFreeze for a single node RS should start an election instead of auto-winning. Created: 03/Jul/18  Updated: 29/Oct/23  Resolved: 27/Jul/18

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 3.6.7, 4.0.2, 4.1.2

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

Issue Links:
Backports
Related
related to SERVER-31963 Remove code for replication protocol ... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.0, v3.6
Sprint: Repl 2018-07-30
Participants:

 Description   

The problem is similar to ticket SERVER-34102,_performPostMemberStateUpdateAction(kActionWinElection) can race with the election timeout in PV1 and can lead to an invariant failure.



 Comments   
Comment by Githook User [ 06/Aug/18 ]

Author:

{'username': 'smani87', 'name': 'Suganthi Mani', 'email': 'suganthi.mani@mongodb.com'}

Message: SERVER-35951 Fix to prevent race between repl set unfreeze and _startElectSelfIfEligibleV1 (election timeout) for pv1 single node replica set case.

(cherry picked from commit 32bd1c03753a5cd349841eea0d5541e1f3f1305d)
Branch: v4.0
https://github.com/mongodb/mongo/commit/68b6e2d22d5ef67d00e83f27a6e0f5b436613a92

Comment by Githook User [ 31/Jul/18 ]

Author:

{'username': 'smani87', 'name': 'Suganthi Mani', 'email': 'suganthi.mani@mongodb.com'}

Message: SERVER-35951 Fix to prevent race between repl set unfreeze and _startElectSelfIfEligibleV1 (election timeout) for pv1 single node replica set case.

(cherry picked from commit 32bd1c03753a5cd349841eea0d5541e1f3f1305d)
Branch: v3.6
https://github.com/mongodb/mongo/commit/852a26caff638889102a1a2278842402ca2c9cc5

Comment by Githook User [ 27/Jul/18 ]

Author:

{'name': 'Suganthi Mani', 'email': 'suganthi.mani@mongodb.com', 'username': 'smani87'}

Message: SERVER-35951 Fix to prevent race between repl set unfreeze and _startElectSelfIfEligibleV1 (election timeout) for pv1 single node replica set case.
Branch: master
https://github.com/mongodb/mongo/commit/32bd1c03753a5cd349841eea0d5541e1f3f1305d

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