[SERVER-49523] 'commit_quorum_does_not_hang_with_initial_sync.js' can fail if the primary can't see a majority of the replica set Created: 15/Jul/20  Updated: 29/Oct/23  Resolved: 15/Jul/20

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: 4.5.1, 4.4.0-rc13
Fix Version/s: 4.4.1, 4.7.0

Type: Bug Priority: Major - P3
Reporter: Gregory Wlodarek Assignee: Gregory Wlodarek
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.4
Sprint: Execution Team 2020-07-27
Participants:
Linked BF Score: 28

 Description   

The tests primary will stepdown if it can't see a majority of the set. This happens when we restart the secondary node in a 2-node replica set. 

 

[js_test:commit_quorum_does_not_hang_with_initial_sync] 2020-07-03T09:02:43.511+0000 d21520| 2020-07-03T09:02:43.509+00:00 I  REPL     21809   [ReplCoord-0] "Can't see a majority of the set, relinquishing primary"
[js_test:commit_quorum_does_not_hang_with_initial_sync] 2020-07-03T09:02:43.511+0000 d21520| 2020-07-03T09:02:43.510+00:00 I  REPL     21475   [ReplCoord-0] "Stepping down from primary in response to heartbeat"



 Comments   
Comment by Githook User [ 04/Aug/20 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-49523 Use a 3-node replica set for 'commit_quorum_does_not_hang_with_initial_sync.js' to avoid having the primary stepdown if it can't see a majority of the replica set

(cherry picked from commit 5034da92513be28db2a597bed80a6c548ecfa1e3)
Branch: v4.4
https://github.com/mongodb/mongo/commit/dc35ec172f503b9a99e9319936acbfc0eac20266

Comment by Githook User [ 15/Jul/20 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-49523 Use a 3-node replica set for 'commit_quorum_does_not_hang_with_initial_sync.js' to avoid having the primary stepdown if it can't see a majority of the replica set
Branch: master
https://github.com/mongodb/mongo/commit/5034da92513be28db2a597bed80a6c548ecfa1e3

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