[SERVER-47339] Make replsets/auth1.js step up a node while initiating the replica set Created: 04/Apr/20  Updated: 29/Oct/23  Resolved: 26/May/20

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

Type: Bug Priority: Major - P3
Reporter: Samyukta Lanka Assignee: Samyukta Lanka
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
Sprint: Repl 2020-04-06, Repl 2020-04-20, Repl 2020-05-04, Repl 2020-05-18, Repl 2020-06-01
Participants:
Linked BF Score: 9

 Description   

The test runs an initiate command rather than using ReplSetTest's initiate function since the test does not guarantee that all nodes are authenticated. This means that the first primary for the set happens after a node's election timeout triggers and it successfully runs for election. If another node runs for election before it finds out about the first election, then the original primary will step down, which could interrupt ongoing operations being run by the test.

Instead, we should ensure that all nodes agree on the primary some other way to ensure that nodes don't interrupt each other in the middle of the test.



 Comments   
Comment by Githook User [ 26/May/20 ]

Author:

{'name': 'Samy Lanka', 'email': 'samy.lanka@mongodb.com', 'username': 'lankas'}

Message: SERVER-47339 Add a function that doesn't require authentication for awaiting that nodes agree on a primary in replsettest.js
Branch: master
https://github.com/mongodb/mongo/commit/d501442a8ed07ba6e05cce3db8b83a5d7f4b7313

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