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

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 4.7.0, 4.4.11

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
Duplicate
is duplicated by SERVER-60319 Make initial_sync_aborts_two_phase_in... Closed
Related
related to SERVER-64202 [4.4] initial_sync_aborts_two_phase_i... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Sprint: Execution Team 2020-06-29
Participants:
Linked BF Score: 27

 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:initial_sync_aborts_two_phase_index_builds] 2020-06-02T10:12:43.488+0000 d20770| 2020-06-02T10:12:43.488+00:00 I  REPL     21216   [ReplCoord-0] "Member is now in state RS_DOWN","attr":{"hostAndPort":"ip-10-122-72-135:20771","heartbeatMessage":"no response within election timeout period"}
[js_test:initial_sync_aborts_two_phase_index_builds] 2020-06-02T10:12:43.488+0000 d20770| 2020-06-02T10:12:43.488+00: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] 2020-06-02T10:12:43.488+0000 d20770| 2020-06-02T10:12:43.488+00:00 I  REPL     21475   [ReplCoord-0] "Stepping down from primary in response to heartbeat"



 Comments   
Comment by Githook User [ 09/Nov/21 ]

Author:

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

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

(cherry picked from commit dd51b67d1308ecc52fdf6b91bebfe3a25c30deb0)
Branch: v4.4
https://github.com/mongodb/mongo/commit/bc4d38a82a7fa0f98e212226b4347e9da47bf56b

Comment by Githook User [ 23/Jun/20 ]

Author:

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

Message: SERVER-49028 Use a 3-node replica set 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/dd51b67d1308ecc52fdf6b91bebfe3a25c30deb0

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