[SERVER-28273] replsettest.js needs to authenticate before stepping up node 0 Created: 10/Mar/17  Updated: 06/Dec/22  Resolved: 14/Apr/17

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

Type: Bug Priority: Major - P3
Reporter: Matthew Russotto Assignee: Backlog - Replication Team
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Duplicate
duplicates SERVER-28376 ReplSetTest.initiate() should call aw... Closed
Assigned Teams:
Replication
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:
Linked BF Score: 0

 Description   

In tests which use authentication, if node 0 doesn't become primary after the rsInitiate, stepping it up will fail because the connection is not authenticated.



 Comments   
Comment by Benety Goh [ 14/Apr/17 ]

SERVER-28376 extended ReplSetTest.initiate() in the following commit so that it authenticates all the nodes in the replica set before calling awaitReplication():

Author:

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

Message: SERVER-28376 ReplSetTest.stepUp() calls awaitReplication() before sending replSetStepUp command
Branch: master
https://github.com/mongodb/mongo/commit/f1fb0600a328f0792fa84bea78e368831e4af669

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