[SERVER-25892] listDatabases command doesn't hold global lock when getting the list of databases Created: 31/Aug/16  Updated: 19/Nov/16  Resolved: 06/Oct/16

Status: Closed
Project: Core Server
Component/s: Concurrency
Affects Version/s: None
Fix Version/s: 3.4.0-rc1

Type: Bug Priority: Major - P3
Reporter: Mathias Stearn Assignee: Geert Bosch
Resolution: Done Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Integration 2016-10-10
Participants:

 Description   

It uses DBLock when querying the individual dbs, but it doesn't hold any locks during the initial call into the storage engine. At the very least this can race with clean shutdown.



 Comments   
Comment by Githook User [ 06/Oct/16 ]

Author:

{u'username': u'GeertBosch', u'name': u'Geert Bosch', u'email': u'geert@mongodb.com'}

Message: SERVER-25892 Hold global lock while listing databases
Branch: master
https://github.com/mongodb/mongo/commit/36b0eac52c0ca75aa7171ff977ac37a9bd85d2d1

Comment by Ian Whalen (Inactive) [ 12/Sep/16 ]

Putting as 3.3 Required but might deprioritize based on checking whether this can cause corruption or crashes.

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