[DOCS-7685] isMaster, rs.status hold write lock? Created: 19/Apr/16  Updated: 30/Oct/23  Resolved: 27/Jan/20

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Task Priority: Major - P3
Reporter: Zhang Youdong Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 0
Labels: groom
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File log-locks-v42.patch    
Participants:
Days since reply: 4 years, 1 day ago
Epic Link: DOCSP-1769

 Description   

https://docs.mongodb.org/manual/faq/concurrency/

The following administrative commands lock the database but only hold the lock for a very short time:
 
db.collection.dropIndex(),
db.getLastError(),
db.isMaster(),
rs.status() (i.e. replSetGetStatus),
db.serverStatus(),
db.auth(), and
db.addUser().

I deep into the source code,and did some test work, found that the following operaiotn will not lock the database, if this document is not update to date?

db.getLastError(),
db.isMaster(),
rs.status() (i.e. replSetGetStatus),
db.serverStatus(),



 Comments   
Comment by Githook User [ 11/Feb/20 ]

Author:

{'username': 'kay-kim', 'name': 'Kay Kim', 'email': 'kay.kim@10gen.com'}

Message: DOCS-7685: update faq concurrency locking info for GLE, isMaster, rsStatus, serverStatus
Branch: v4.2
https://github.com/mongodb/docs/commit/145fb3109b8730efb8a532c36f050027446e07e6

Comment by Githook User [ 27/Jan/20 ]

Author:

{'username': 'kay-kim', 'name': 'Kay Kim', 'email': 'kay.kim@10gen.com'}

Message: DOCS-7685: update faq concurrency locking info for GLE, isMaster, rsStatus, serverStatus
Branch: v4.0
https://github.com/mongodb/docs/commit/2d5fa2455ac43f9a1fda4ff79cb93aa63c6a930e

Comment by Githook User [ 27/Jan/20 ]

Author:

{'email': 'kay.kim@10gen.com', 'username': 'kay-kim', 'name': 'Kay Kim'}

Message: DOCS-7685: update faq concurrency locking info for GLE, isMaster, rsStatus, serverStatus
Branch: v4.2
https://github.com/mongodb/docs/commit/145fb3109b8730efb8a532c36f050027446e07e6

Comment by Githook User [ 27/Jan/20 ]

Author:

{'username': 'kay-kim', 'name': 'Kay Kim', 'email': 'kay.kim@10gen.com'}

Message: DOCS-7685: update faq concurrency locking info for GLE, isMaster, rsStatus, serverStatus
Branch: master
https://github.com/mongodb/docs/commit/2595d7438d21436e2a0ab86dcd3c2e8376edfcd7

Comment by Kay Kim (Inactive) [ 30/Dec/19 ]

Hi – thanks for following up and apologies for the delay in action for this ticket. We are a small team (now 3, although 2 for a while) and have been trying to balance various updates for new features, improvements, and fixes. We will try to get to this ticket in the next quarter. Regards.

Comment by Zhang Youdong [ 30/Dec/19 ]

The description is still not updated in latest document, https://docs.mongodb.com/manual/faq/concurrency/. 

Comment by Stennie Steneker (Inactive) [ 19/Apr/16 ]

Hi,

Thanks for your question & investigation. I've moved this issue from SERVER into the DOCS project so we can follow-up and update the Concurrency FAQ in the MongoDB manual if appropriate.

Regards,
Stephen

Generated at Thu Feb 08 07:54:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.