[SERVER-64202] [4.4] initial_sync_aborts_two_phase_index_builds_hide_index.js can fail if the primary can't see a majority of the replica set Created: 04/Mar/22  Updated: 29/Oct/23  Resolved: 04/Mar/22

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

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

Issue Links:
Depends
Related
is related to SERVER-49028 initial_sync_aborts_two_phase_index_b... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2022-03-21
Participants:
Linked BF Score: 15

 Description   

The test's 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. 

 

{code:java}
[js_test:initial_sync_aborts_two_phase_index_builds_hide_index] 2022-01-31T23:12:21.531-0500 d20270| 2022-01-31T23:12:21.531-05:00 I  REPL     21809   [ReplCoord-0] "Can't see a majority of the set, relinquishing primary"
[js_test:initial_sync_aborts_two_phase_index_builds_hide_index] 2022-01-31T23:12:21.531-0500 d20270| 2022-01-31T23:12:21.531-05:00 I  REPL     21475   [ReplCoord-0] "Stepping down from primary in response to heartbeat" 



 Comments   
Comment by Githook User [ 04/Mar/22 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-64202 Use a 3-node replica set to avoid having the primary stepdown if it can't see a majority of the replica set
Branch: v4.4
https://github.com/mongodb/mongo/commit/45d387c249f63c1479b539c2f491cd9d302d3cba

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