[SERVER-42989] db.createUser is getting hanged Created: 23/Aug/19  Updated: 23/Aug/19  Resolved: 23/Aug/19

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

Type: Bug Priority: Major - P3
Reporter: Lochan Marwaha Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

While creating a user on mongodb, with version MongoDB server version: 4.0.10 db.create user is getting hanged. I am using below command for that

 

dflux_stage:PRIMARY> db.createUser(
...    {
...      user: "dflux_admin_usr",
...      pwd: "Mypass",
...      roles: [ "readWrite", "dbAdmin" ]
...    }
... )
 



 Comments   
Comment by Lochan Marwaha [ 23/Aug/19 ]

Please close this Jira card. Thank you.

Comment by Lochan Marwaha [ 23/Aug/19 ]

We resolved the issue, it was basically due to one of delayed replica member.

The command we used it

dflux_stage:PRIMARY> db.createUser(
...     {
...       user: "dflux_admin_db",
...       pwd: "************",
...       roles: [ "readWrite", "dbAdmin"] },
...       { w: 1 , wtimeout: 5000 }
...
... )
Successfully added user: { "user" : "dflux_admin_db", "roles" : [ "readWrite", "dbAdmin" ] } 

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