[SERVER-25824] Make auth/user_defined_roles_on_secondaries.js wait for the set to be stable before adding new roles Created: 26/Aug/16  Updated: 19/Nov/16  Resolved: 30/Aug/16

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

Type: Bug Priority: Major - P3
Reporter: Scott Hernandez (Inactive) Assignee: Scott Hernandez (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Repl 2016-09-19
Participants:
Linked BF Score: 0

 Description   

The test should make sure the set is healthy, with a primary (and all other nodes are up) before adding roles/users.

    var rstest = new ReplSetTest({name: name, nodes: 1, nodeOptions: {}});
 
    rstest.startSet();
    rstest.initiate();
 
    m0 = rstest.nodes[0];
...
    rstest.add();
    rstest.reInitiate();
 
    rstest.getPrimary().getDB("db1").createRole({...

After the reInitiate call m0 might no longer be primary, or be stepping down. There should be a write(w:2)/await or something to ensure that the set has a primary is healthy (all members).



 Comments   
Comment by Githook User [ 30/Aug/16 ]

Author:

{u'username': u'scotthernandez', u'name': u'Scott Hernandez', u'email': u'scotthernandez@gmail.com'}

Message: SERVER-25824: wait for the set to be stable before adding new roles in auth/user_defined_roles_on_secondaries.js
Branch: master
https://github.com/mongodb/mongo/commit/d5ab29f7c58ad42e691748c23fa6a48903db089b

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